summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src/main/java/at/asit/pdfover/gui
diff options
context:
space:
mode:
authortkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 19:10:55 +0000
committertkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 19:10:55 +0000
commiteaf2eea7ad089539107433f35dfd3bf78c8fc549 (patch)
tree339ecfa429335f0c3343d6bea090144b67ab64d6 /pdf-over-gui/src/main/java/at/asit/pdfover/gui
parent5b443ea391aee9a9340dbdbf990feea64f23e7a0 (diff)
downloadmocca-eaf2eea7ad089539107433f35dfd3bf78c8fc549.tar.gz
mocca-eaf2eea7ad089539107433f35dfd3bf78c8fc549.tar.bz2
mocca-eaf2eea7ad089539107433f35dfd3bf78c8fc549.zip
Scrolling workarounds
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@178 174cde9d-5d70-4d2a-aa98-46368bc2aaf7
Diffstat (limited to 'pdf-over-gui/src/main/java/at/asit/pdfover/gui')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java5
1 files changed, 5 insertions, 0 deletions
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();