mirror of
https://github.com/koodo-reader/koodo-reader.git
synced 2026-10-07 21:34:49 -04:00
fix bug
This commit is contained in:
1 parent
32702b4099
commit
c472c345ae
3 files changed
+3
-7
No files matched your search
Vendored
+1
-1
File diff suppressed because one or more lines are too long.
@@ -26,10 +26,7 @@ import {
|
||||
import SupportDialog from "../../components/dialogs/supportDialog";
|
||||
|
||||
let lock = false; //prevent from clicking too fasts
|
||||
let throttleTime =
|
||||
(ConfigService.getReaderConfig("animation") || "none") !== "none"
|
||||
? 1000
|
||||
: 200;
|
||||
let throttleTime = 200;
|
||||
let isMouseMoving = false;
|
||||
const PANEL_POSITIONS = ["left", "right", "top", "bottom"] as const;
|
||||
type PanelPosition = (typeof PANEL_POSITIONS)[number];
|
||||
|
||||
@@ -173,8 +173,7 @@ const handleShortcut = (event: any) => {
|
||||
}
|
||||
if (event.keyCode === 122) {
|
||||
event.preventDefault();
|
||||
const entering =
|
||||
ConfigService.getReaderConfig("isFullscreen") !== "yes";
|
||||
const entering = ConfigService.getReaderConfig("isFullscreen") !== "yes";
|
||||
entering ? handleFullScreen() : handleExitFullScreen();
|
||||
ConfigService.setReaderConfig("isFullscreen", entering ? "yes" : "no");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user