Permalink
Browse files

Fix for Issue #1160

  • Loading branch information...
1 parent 9d2db49 commit ed4396bf3201f257ff95bc059eadc42056578bba @AriaMinaei AriaMinaei committed Nov 6, 2012
Showing with 10 additions and 2 deletions.
  1. +10 −2 Source/Fx/Fx.Scroll.js
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;
}

0 comments on commit ed4396b

Please sign in to comment.