diff options
author | Filip Weiss <me@fiws.net> | 2020-07-09 21:38:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-09 22:38:10 +0300 |
commit | 6adcfd6718646bc60921fe6f385461b993586d80 (patch) | |
tree | b3f53ad868aff7583d6af998ffd6e01532b022d7 | |
parent | d8d10d9905179812829743c33e0e1a68e56b46e4 (diff) | |
download | LibGui-6adcfd6718646bc60921fe6f385461b993586d80.tar.gz LibGui-6adcfd6718646bc60921fe6f385461b993586d80.tar.bz2 LibGui-6adcfd6718646bc60921fe6f385461b993586d80.zip |
abstract slider: fix wrong default direction for horizontal slider (#73)
-rw-r--r-- | src/main/java/io/github/cottonmc/cotton/gui/widget/WAbstractSlider.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/io/github/cottonmc/cotton/gui/widget/WAbstractSlider.java b/src/main/java/io/github/cottonmc/cotton/gui/widget/WAbstractSlider.java index 1a440e9..a7f6027 100644 --- a/src/main/java/io/github/cottonmc/cotton/gui/widget/WAbstractSlider.java +++ b/src/main/java/io/github/cottonmc/cotton/gui/widget/WAbstractSlider.java @@ -72,7 +72,7 @@ public abstract class WAbstractSlider extends WWidget { this.max = max; this.axis = axis; this.value = min; - this.direction = (axis == Axis.HORIZONTAL) ? Direction.LEFT : Direction.UP; + this.direction = (axis == Axis.HORIZONTAL) ? Direction.RIGHT : Direction.UP; } /** |