diff options
author | Andreas Abraham <andreas.abraham@iaik.tugraz.at> | 2021-07-12 05:38:33 -0700 |
---|---|---|
committer | Andreas Abraham <andreas.abraham@iaik.tugraz.at> | 2021-07-12 05:38:33 -0700 |
commit | 9d3568d62141153cb901c9b1a45e71dc03bbf717 (patch) | |
tree | cdb2686149800b4d0fcde4d9081489b5a737258b /pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites | |
parent | cd70045d1127a5ace49ac03f10cab1cd58f914cf (diff) | |
download | pdf-over-9d3568d62141153cb901c9b1a45e71dc03bbf717.tar.gz pdf-over-9d3568d62141153cb901c9b1a45e71dc03bbf717.tar.bz2 pdf-over-9d3568d62141153cb901c9b1a45e71dc03bbf717.zip |
Fixed Issue 42
Diffstat (limited to 'pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites')
-rw-r--r-- | pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java | 3 |
1 files changed, 2 insertions, 1 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 77b8c7c3..da004747 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 @@ -309,9 +309,10 @@ public class PositioningComposite extends StateComposite { int newPage = PositioningComposite.this.currentPage; if (e.getWheelRotation() < 0) { - if (PositioningComposite.this.currentPage > 1) + if (PositioningComposite.this.currentPage > 1) { System.out.println("################## page " + newPage); newPage--; + } } else if (e.getWheelRotation() > 0) { if (PositioningComposite.this.currentPage < PositioningComposite.this.numPages) newPage++; |