diff --git a/src/main/index.ts b/src/main/index.ts index c37d433..832afc8 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -24,6 +24,12 @@ if (IS_DEV) { process.env.VENCORD_USER_DATA_DIR = DATA_DIR; function init() { + const { disableSmoothScroll } = Settings.store; + + if (disableSmoothScroll) { + app.commandLine.appendSwitch("disable-smooth-scrolling"); + } + // work around chrome 66 disabling autoplay by default app.commandLine.appendSwitch("autoplay-policy", "no-user-gesture-required"); diff --git a/src/renderer/components/Settings.tsx b/src/renderer/components/Settings.tsx index e00d909..c50ebb5 100644 --- a/src/renderer/components/Settings.tsx +++ b/src/renderer/components/Settings.tsx @@ -43,6 +43,7 @@ export default function SettingsUi() { ], ["staticTitle", "Static Title", 'Makes the window title "Vesktop" instead of changing to the current page'], ["enableMenu", "Enable Menu Bar", "Enables the application menu bar. Press ALT to toggle visibility."], + ["disableSmoothScroll", "Disable smooth scrolling", "Disables smooth scrolling in Vesktop", false], ["splashTheming", "Splash theming", "Adapt the splash window colors to your custom theme", false], [ "openLinksWithElectron", diff --git a/src/shared/settings.d.ts b/src/shared/settings.d.ts index 2184e44..f92a164 100644 --- a/src/shared/settings.d.ts +++ b/src/shared/settings.d.ts @@ -16,6 +16,7 @@ export interface Settings { openLinksWithElectron?: boolean; staticTitle?: boolean; enableMenu?: boolean; + disableSmoothScroll?: boolean; arRPC?: boolean; appBadge?: boolean; discordWindowsTitleBar?: boolean;