Prevent Electron modifier wheel zoom (#1016)

This commit is contained in:
ZacharyZcR
2026-07-10 08:03:03 +08:00
committed by GitHub
parent aef34fd966
commit 37560fa133
3 changed files with 62 additions and 0 deletions
+3
View File
@@ -10,6 +10,7 @@ import { Toaster } from "@/components/sonner";
import { Auth, getStoredAuth, clearStoredAuth } from "@/auth/Auth";
import { getUserInfo, getCurrentToken, appReadyPromise } from "@/main-axios";
import { applyAccentColor, applyFontSize } from "@/lib/theme";
import { installElectronWheelZoomGuard } from "@/lib/electron-wheel-zoom";
import type { FontSizeId } from "@/types/ui-types";
import { useServiceWorker } from "@/hooks/use-service-worker";
import { useTranslation } from "react-i18next";
@@ -340,6 +341,8 @@ function RootApp() {
return <App />;
}
installElectronWheelZoomGuard();
prepareClientCacheVersion().finally(() => {
createRoot(document.getElementById("root")!).render(
<StrictMode>