diff --git a/src/main/java/com/tagtraum/perf/gcviewer/view/ModelChartImpl.java b/src/main/java/com/tagtraum/perf/gcviewer/view/ModelChartImpl.java index 095caa04..72a9d845 100644 --- a/src/main/java/com/tagtraum/perf/gcviewer/view/ModelChartImpl.java +++ b/src/main/java/com/tagtraum/perf/gcviewer/view/ModelChartImpl.java @@ -186,7 +186,7 @@ private void maybePopup(MouseEvent e) { addMouseWheelListener(new MouseWheelListener() { @Override public void mouseWheelMoved(MouseWheelEvent e) { - if ((e.getModifiersEx() & InputEvent.SHIFT_DOWN_MASK) != 0) { + if ((e.getModifiersEx() & InputEvent.META_DOWN_MASK) != 0||(e.getModifiersEx() & InputEvent.CTRL_DOWN_MASK) != 0) { double pos = (double)(getHorizontalScrollBar().getValue()) / (double)(chart.getWidth()); if (e.getWheelRotation() > 0 && getScaleFactor() < 100) { setScaleFactor((getScaleFactor()*1.2));