aboutsummaryrefslogtreecommitdiff
path: root/mod/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'mod/src/main/java')
-rw-r--r--mod/src/main/java/kr/syeyoung/dungeonsguide/mod/guiv2/elements/ScrollablePanel.java4
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;
}