JBCefOsrComponent: revert scroll on mac/linux

GitOrigin-RevId: f181e9291e5f3adb097b5277503e4006501ddf30
This commit is contained in:
Anton Tarasov
2021-04-06 16:21:36 +00:00
committed by intellij-monorepo-bot
parent 60768e7d31
commit 94a78632e3
@@ -91,7 +91,7 @@ class JBCefOsrComponent extends JPanel {
double val = e.getPreciseWheelRotation() *
RegistryManager.getInstance().intValue("ide.browser.jcef.osr.wheelRotation.factor");
if (SystemInfoRt.isLinux) {
if (SystemInfoRt.isLinux || SystemInfoRt.isMac) {
val *= -1;
}
myBrowser.getCefBrowser().sendMouseWheelEvent(new MouseWheelEvent(