From 9d3568d62141153cb901c9b1a45e71dc03bbf717 Mon Sep 17 00:00:00 2001 From: Andreas Abraham Date: Mon, 12 Jul 2021 05:38:33 -0700 Subject: Fixed Issue 42 --- .../main/java/at/asit/pdfover/gui/composites/PositioningComposite.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (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 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++; -- cgit v1.2.3