More scroll work

This commit is contained in:
Max Lynch
2013-10-25 14:57:22 -05:00
parent ab38d805d2
commit 5c0dd9eb33
3 changed files with 266 additions and 134 deletions

View File

@ -582,6 +582,7 @@ ionic.views.Scroll.prototype = {
}
// If they enabled snapping (for page stuff), scroll to the next snap
if ( this.options.snap ) {
var snap = this._nearestSnap(newX, newY);
this.currentPage = snap;