Fix for Issue #1160 #1161

Open
wants to merge 1 commit into
from
Jump to file or symbol
Failed to load files and symbols.
+10 −2
Split
View
@@ -135,7 +135,11 @@ Fx.Scroll = new Class({
if (offset && offset[axis]) to[axis] = to[axis] + offset[axis];
}, this);
- if (to.x != scroll.x || to.y != scroll.y) this.start(to.x, to.y);
+ if (to.x != scroll.x || to.y != scroll.y) {
+ this.start(to.x, to.y);
+ } else {
+ this.chain();
+ }
return this;
},
@@ -156,7 +160,11 @@ Fx.Scroll = new Class({
if (offset && offset[axis]) to[axis] = to[axis] + offset[axis];
}, this);
- if (to.x != scroll.x || to.y != scroll.y) this.start(to.x, to.y);
+ if (to.x != scroll.x || to.y != scroll.y) {
+ this.start(to.x, to.y);
+ } else {
+ this.chain();
+ }
return this;
}