From eaf2eea7ad089539107433f35dfd3bf78c8fc549 Mon Sep 17 00:00:00 2001 From: tkellner Date: Wed, 10 Apr 2013 19:10:55 +0000 Subject: Scrolling workarounds git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@178 174cde9d-5d70-4d2a-aa98-46368bc2aaf7 --- .../java/at/asit/pdfover/gui/composites/PositioningComposite.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pdf-over-gui/src/main/java/at/asit/pdfover') diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java index defa846a..c8d725c3 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java @@ -241,6 +241,11 @@ public class PositioningComposite extends StateComposite { @Override public void mouseWheelMoved(MouseWheelEvent e) { + // Workaround for Windows: Scrollbar always gets the event + if (System.getProperty("os.name").toLowerCase().contains("windows")) //$NON-NLS-1$ //$NON-NLS-2$ + return; + + // Workaround for Linux: Events fire twice if (e.getWhen() == this.lastEventTime) return; this.lastEventTime = e.getWhen(); -- cgit v1.2.3