1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-10 11:59:58 +00:00

Fixed problem with not being able to manually scroll after navigating to a tiddler

This commit is contained in:
Jeremy Ruston 2013-06-10 21:07:23 +01:00
parent 3cda8758ae
commit d6654c4a0b

View File

@ -102,7 +102,9 @@ PageScroller.prototype.scrollIntoView = function(event) {
}
t = $tw.utils.slowInSlowOut(t);
window.scrollTo(scrollPosition.x + (endX - scrollPosition.x) * t,scrollPosition.y + (endY - scrollPosition.y) * t);
self.idRequestFrame = self.requestAnimationFrame.call(window,drawFrame);
if(t < 1) {
self.idRequestFrame = self.requestAnimationFrame.call(window,drawFrame);
}
};
drawFrame();
}