From ed4396bf3201f257ff95bc059eadc42056578bba Mon Sep 17 00:00:00 2001 From: Aria Date: Tue, 6 Nov 2012 12:52:25 +0330 Subject: [PATCH] Fix for Issue #1160 --- Source/Fx/Fx.Scroll.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Source/Fx/Fx.Scroll.js b/Source/Fx/Fx.Scroll.js index 0b818a3e..9d631b55 100644 --- a/Source/Fx/Fx.Scroll.js +++ b/Source/Fx/Fx.Scroll.js @@ -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; }