1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-12-05 00:08:06 +00:00

DynaView plugin: add optional scroll position preservation

This commit is contained in:
Jermolene
2019-01-11 17:50:52 +00:00
parent af9f90e8cd
commit e14e69bedc
10 changed files with 107 additions and 24 deletions

View File

@@ -33,6 +33,10 @@ var PageScroller = function() {
};
};
PageScroller.prototype.isScrolling = function() {
return this.idRequestFrame !== null;
}
PageScroller.prototype.cancelScroll = function(srcWindow) {
if(this.idRequestFrame) {
this.cancelAnimationFrame.call(srcWindow,this.idRequestFrame);