Skip to content

Commit ed60eb6

Browse files
authored
Merge pull request microsoft#65422 from usernamehw/webview_smooth
Add CLI flag to be able to disable smooth scroll in webviews
2 parents 47913e0 + c93c731 commit ed60eb6

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/main.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,11 @@ function configureCommandlineSwitches(cliArgs, nodeCachedDataDir) {
146146
if (jsFlags) {
147147
app.commandLine.appendSwitch('--js-flags', jsFlags);
148148
}
149+
150+
// Disable smooth scrolling for Webviews
151+
if (cliArgs['disable-smooth-scrolling']) {
152+
app.commandLine.appendSwitch('disable-smooth-scrolling');
153+
}
149154
}
150155

151156
/**

0 commit comments

Comments
 (0)