summaryrefslogtreecommitdiff
path: root/trunk/pdf-over-gui
diff options
context:
space:
mode:
authortkellner <tkellner@3a0b52a2-8410-0410-bc02-ff6273a87459>2012-10-31 16:37:02 +0000
committertkellner <tkellner@3a0b52a2-8410-0410-bc02-ff6273a87459>2012-10-31 16:37:02 +0000
commit9a6f1e68edac1688353ab1e073bb782df76d3600 (patch)
treeddf523e4304e107bac583cefc39c439e9809609c /trunk/pdf-over-gui
parent72d3fd1cdb62a066a933b0786c8d5b6e9a339100 (diff)
downloadpdf-over-9a6f1e68edac1688353ab1e073bb782df76d3600.tar.gz
pdf-over-9a6f1e68edac1688353ab1e073bb782df76d3600.tar.bz2
pdf-over-9a6f1e68edac1688353ab1e073bb782df76d3600.zip
Scrolling workarounds
git-svn-id: https://svn.iaik.tugraz.at/svn/egiz/prj/current/12PDF-OVER-4.0@12764 3a0b52a2-8410-0410-bc02-ff6273a87459
Diffstat (limited to 'trunk/pdf-over-gui')
-rw-r--r--trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java
index defa846a..c8d725c3 100644
--- a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java
+++ b/trunk/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();