diff options
author | syeyoung <cyoung06@naver.com> | 2023-02-07 14:43:41 +0900 |
---|---|---|
committer | syeyoung <cyoung06@naver.com> | 2023-02-07 14:43:41 +0900 |
commit | 9edc3503704ec77209d14fff2a1437a0d0369190 (patch) | |
tree | a374dfe92da41e1aec5839a0a99de6def54efe1a /mod/src/main/java | |
parent | 1ac70da12d95bd5fdce6d4995d0c835e25a9c24a (diff) | |
download | Skyblock-Dungeons-Guide-9edc3503704ec77209d14fff2a1437a0d0369190.tar.gz Skyblock-Dungeons-Guide-9edc3503704ec77209d14fff2a1437a0d0369190.tar.bz2 Skyblock-Dungeons-Guide-9edc3503704ec77209d14fff2a1437a0d0369190.zip |
- Reverse scroll direction
Signed-off-by: syeyoung <cyoung06@naver.com>
Diffstat (limited to 'mod/src/main/java')
-rw-r--r-- | mod/src/main/java/kr/syeyoung/dungeonsguide/mod/guiv2/elements/ScrollablePanel.java | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |