Elffuss
Braid
Hub
Explore
Sign up or sign in
kikocis
/
iscroll
public
0 stars
1 watching
0 forks
Code
History
Issues
Requests
iscroll
/
src
/
snap
/
refresh.js
master · 212 B
Raw
Permalink
1
2
if ( this.options.snap ) {
3
var snap = this._nearestSnap(this.x, this.y);
4
if ( this.x == snap.x && this.y == snap.y ) {
5
return;
6
}
7
8
this.currentPage = snap;
9
this.scrollTo(snap.x, snap.y);
10
}