☰
Debian Codegraph
@
5.2.0+dfsg1-3
/
/
src
/
snap
/
refresh.js
☽
☼
src/snap/refresh.js
code
plain
raw
symbols
SCIP
Expat
2008-2014 Matteo Spinelli, cubiq.org
debian/copyright
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
}