An Enyo 2.0 Scroller kind that "snaps" to specific scroll positions for the controls it contains. Similar to the Enyo 1.0 SnapScroller control. An optional "peek" parameter allows you to partially show items to the left or right, as normally the "snap" aligns the side of the item with the side of the container. Fires "onSnap" and "onSnapFinish" events.
The logic for which direction to snap to is simple - its just the delta between the scroll start position and the current position - it snapping in the direction dragged.
Source and examples available at https://github.com/ryanwatkins/snapscroller
Tested platforms include: Android 2+, iOS 5+, Chrome 17+, Safari 5.1+, Firefox 10+
Vertical SnapScroller
Peeking SnapScroller
Two Nested SnapScrollers
Copyright © 2012-2013 Ryan Watkins ryan@ryanwatkins.net
Permission to use, copy, modify, distribute, and sell this software
and its documentation for any purpose is hereby granted without fee,
provided that the above copyright notice appear in all copies and that
both that copyright notice and this permission notice appear in
supporting documentation. No representations are made about the
suitability of this software for any purpose. It is provided "as is"
without express or implied warranty.