More stats and cleanup

This commit is contained in:
ZXY101
2023-10-05 00:49:17 +02:00
parent 5c652344c2
commit 8c97b1587a
7 changed files with 87 additions and 31 deletions

View File

@@ -17,7 +17,6 @@
ChevronLeftSolid,
ChevronRightSolid
} from 'flowbite-svelte-icons';
import { afterUpdate, onMount } from 'svelte';
import Cropper from './Cropper.svelte';
import { page as pageStore } from '$app/stores';
import SettingsButton from './SettingsButton.svelte';
@@ -98,17 +97,6 @@
$: charDisplay = `${charCount} / ${maxCharCount}`;
let hasCoverSetting = volumeSettings.hasCover;
$: {
if (volumeSettings.hasCover !== hasCoverSetting) {
hasCoverSetting = volumeSettings.hasCover;
if (page > 1 && !volumeSettings.singlePageView) {
page--;
}
}
}
function onInputClick(this: any) {
this.select();
}
@@ -117,10 +105,6 @@
changePage(manualPage, true);
}
afterUpdate(() => {
zoomDefault();
});
function handleShortcuts(event: KeyboardEvent & { currentTarget: EventTarget & Window }) {
const action = event.code || event.key;