Fix zoomDefault on count up
This commit is contained in:
@@ -202,21 +202,6 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
let shouldUpdate = false;
|
||||
|
||||
function handleUpdate() {
|
||||
shouldUpdate = true;
|
||||
}
|
||||
|
||||
$: volumeSettings.singlePageView && handleUpdate();
|
||||
|
||||
afterUpdate(() => {
|
||||
if (shouldUpdate) {
|
||||
shouldUpdate = false;
|
||||
zoomDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<svelte:window
|
||||
|
||||
Reference in New Issue
Block a user