mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-07-16 05:13:36 +00:00
Prevent Electron modifier wheel zoom (#1016)
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user