Merge pull request #65422 from usernamehw/webview_smooth

Add CLI flag to be able to disable smooth scroll in webviews
This commit is contained in:
Matt Bierner 2019-04-08 15:10:34 -07:00 committed by GitHub
commit ed60eb6285
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -146,6 +146,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');
}
}
/**