1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-11-17 15:57:14 +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

@@ -71,9 +71,10 @@ exports.startup = function() {
timerId;
function refresh() {
// Process the refresh
$tw.hooks.invokeHook("th-page-refreshing");
$tw.pageWidgetNode.refresh(deferredChanges);
deferredChanges = Object.create(null);
$tw.hooks.invokeHook("th-page-refreshed");
$tw.hooks.invokeHook("th-page-refreshed");
}
// Add the change event handler
$tw.wiki.addEventListener("change",$tw.perf.report("mainRefresh",function(changes) {