From 21813098b4b707422ce34cc8f2048e190cd0462e Mon Sep 17 00:00:00 2001 From: Sy Le Date: Thu, 1 Dec 2022 08:53:39 -0800 Subject: [PATCH] disable smooth scrolling --- src/electron/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/electron/index.ts b/src/electron/index.ts index a70349e4e..d25ee68cb 100644 --- a/src/electron/index.ts +++ b/src/electron/index.ts @@ -10,8 +10,10 @@ const isMac = process.platform === 'darwin'; // disable smooth scrolling try { - app.commandLine.appendSwitch('--disable-smooth-scrolling'); + app.commandLine.appendSwitch('disable-smooth-scrolling'); } catch (err) {} + +// create the window async function createWindow(isFirstWindow?: boolean) { const mainWindow = new BrowserWindow({ width: 1200,