Zynga Scroller 是一个用于简化网页上的滚动和缩放操作的 JS 库。

功能特性

  1. Customizable enabling/disabling of scrolling for x-axis and y-axis
  2. Deceleration (decelerates when user action ends in motion)
  3. Bouncing (bounces back on the edges)
  4. Paging (snap to full page width/height)
  5. Snapping (snap to an user definable pixel grid)
  6. Zooming (automatic centered zooming or based on a point in the view with configurable min/max zoom)
  7. Locking (locks drag direction based on initial movement)
  8. Configurable regarding whether animation should be used.