From 94a78632e3678629fa2cf251af8467bd41aa4cfb Mon Sep 17 00:00:00 2001 From: Anton Tarasov Date: Tue, 6 Apr 2021 19:20:09 +0300 Subject: [PATCH] JBCefOsrComponent: revert scroll on mac/linux GitOrigin-RevId: f181e9291e5f3adb097b5277503e4006501ddf30 --- .../src/com/intellij/ui/jcef/JBCefOsrComponent.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/platform-api/src/com/intellij/ui/jcef/JBCefOsrComponent.java b/platform/platform-api/src/com/intellij/ui/jcef/JBCefOsrComponent.java index 0390cca9f1b4..be661e19d3bd 100644 --- a/platform/platform-api/src/com/intellij/ui/jcef/JBCefOsrComponent.java +++ b/platform/platform-api/src/com/intellij/ui/jcef/JBCefOsrComponent.java @@ -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(