mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
JBCefOsrComponent: revert scroll on mac/linux
GitOrigin-RevId: f181e9291e5f3adb097b5277503e4006501ddf30
This commit is contained in:
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(
|
||||
|
||||
Reference in New Issue
Block a user