Dont zoomDefault on timer update

This commit is contained in:
ZXY101
2024-02-08 11:00:59 +02:00
parent a1a582f786
commit 87be518e02
2 changed files with 17 additions and 2 deletions

View File

@@ -199,8 +199,19 @@
}
}
let shouldUpdate = false;
function handleUpdate() {
shouldUpdate = true;
}
$: volumeSettings.singlePageView && handleUpdate();
afterUpdate(() => {
zoomDefault();
if (shouldUpdate) {
shouldUpdate = false;
zoomDefault();
}
});
</script>