This line in both methods prevents animating if the current x,y are the same as the target x,y:
if (to.x != scroll.x || to.y != scroll.y) this.start(to.x, to.y);
However, as start() is never called, this also prevents the onComplete callback or .chain functions from firing.
(This is different to how toElement works, which will always fire the callback, even if the coordinates remain the same.)
As a user of these methods, I would expect the onComplete callback to always fire, even if no scrolling actually happens.
you're probably right that we should be consistent here. Could you fix it (it's super easy via the github webinterface (fork and edit file button)) and send a pull request.
Any progress on this?
Related #1160 & #1317