From 9edc3503704ec77209d14fff2a1437a0d0369190 Mon Sep 17 00:00:00 2001 From: syeyoung Date: Tue, 7 Feb 2023 14:43:41 +0900 Subject: - Reverse scroll direction Signed-off-by: syeyoung --- .../kr/syeyoung/dungeonsguide/mod/guiv2/elements/ScrollablePanel.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mod/src/main/java/kr/syeyoung') diff --git a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/guiv2/elements/ScrollablePanel.java b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/guiv2/elements/ScrollablePanel.java index c13a01a0..81ce795d 100644 --- a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/guiv2/elements/ScrollablePanel.java +++ b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/guiv2/elements/ScrollablePanel.java @@ -121,13 +121,13 @@ public class ScrollablePanel extends AnnotatedWidget { if (direction.getValue().vertical) { double old = this.y.getValue(), neu; this.y.setValue( - neu = Layouter.clamp(this.y.getValue() + scrollAmount,0, contentHeight.getValue()) + neu = Layouter.clamp(this.y.getValue() - scrollAmount,0, contentHeight.getValue()) ); return old != neu; } else if (direction.getValue().horizontal) { double old = this.x.getValue(), neu; this.x.setValue( - neu = Layouter.clamp(this.x.getValue() + scrollAmount,0, contentWidth.getValue()) + neu = Layouter.clamp(this.x.getValue() - scrollAmount,0, contentWidth.getValue()) ); return old != neu; } -- cgit