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:
commit
ed60eb6285
|
@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue