Zynga Scroller
Zynga Scroller 是一个用于简化网页上的滚动和缩放操作的 JS 库。
功能特性
- Customizable enabling/disabling of scrolling for x-axis and y-axis
- Deceleration (decelerates when user action ends in motion)
- Bouncing (bounces back on the edges)
- Paging (snap to full page width/height)
- Snapping (snap to an user definable pixel grid)
- Zooming (automatic centered zooming or based on a point in the view with configurable min/max zoom)
- Locking (locks drag direction based on initial movement)
- Configurable regarding whether animation should be used.