From c93c73137e542a8d8bd29798ad165036a8164b6d Mon Sep 17 00:00:00 2001 From: al Date: Thu, 20 Dec 2018 01:44:00 +0300 Subject: [PATCH] Add CLI flag to be able to disable smooth scroll in webviews --- src/main.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main.js b/src/main.js index 1d971213754..dfc1542c0c5 100644 --- a/src/main.js +++ b/src/main.js @@ -156,6 +156,11 @@ function configureCommandlineSwitches(cliArgs, nodeCachedDataDir) { if (jsFlags) { app.commandLine.appendSwitch('--js-flags', jsFlags); } + + // Disable smooth scrolling for Webviews + if (cliArgs['disable-smooth-scrolling']) { + app.commandLine.appendSwitch('disable-smooth-scrolling'); + } } /**