Fixes onComplete/chaining in toElementEdge + toElementCenter #1017

Closed
wants to merge 1 commit into
from
Jump to file or symbol
Failed to load files and symbols.
+2 −2
Split
View
@@ -135,7 +135,7 @@ 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);
+ this.start(to.x, to.y);
@SergioCrisostomo

SergioCrisostomo Apr 29, 2014

Member

@meleyal Could you fix the indent here and under?
We are reviewing all PR's before release of 1.5 and this one seems like a good idea.

PS.- sorry this got forgotten in the PR queue

@meleyal

meleyal Aug 13, 2015

Fixed in a new PR here: #1317

return this;
},
@@ -156,7 +156,7 @@ 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);
+ this.start(to.x, to.y);
return this;
}