diff --git a/platform/platform-impl/src/com/intellij/ide/IdeEventQueue.java b/platform/platform-impl/src/com/intellij/ide/IdeEventQueue.java index 16dbae57ef71..5c84967309aa 100644 --- a/platform/platform-impl/src/com/intellij/ide/IdeEventQueue.java +++ b/platform/platform-impl/src/com/intellij/ide/IdeEventQueue.java @@ -509,7 +509,7 @@ public class IdeEventQueue extends EventQueue { MouseEvent src = (MouseEvent)e; if (src.getButton() < 6) { // Convert these events(buttons 4&5 in are produced by touchpad, they must be converted to horizontal scrolling events - e = new MouseWheelEvent(src.getComponent(), src.getID(), src.getWhen(), + e = new MouseWheelEvent(src.getComponent(), MouseEvent.MOUSE_WHEEL, src.getWhen(), src.getModifiers() | InputEvent.SHIFT_DOWN_MASK, src.getX(), src.getY(), 0, false, MouseWheelEvent.WHEEL_UNIT_SCROLL, src.getClickCount(), src.getButton() == 4 ? -1 : 1); }