Skip to content

Commit

Permalink
Merge pull request #65422 from usernamehw/webview_smooth
Browse files Browse the repository at this point in the history
Add CLI flag to be able to disable smooth scroll in webviews
  • Loading branch information
mjbvz committed Apr 8, 2019
2 parents 47913e0 + c93c731 commit ed60eb6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
}

/**
Expand Down

0 comments on commit ed60eb6

Please sign in to comment.