From 6adcfd6718646bc60921fe6f385461b993586d80 Mon Sep 17 00:00:00 2001 From: Filip Weiss Date: Thu, 9 Jul 2020 21:38:10 +0200 Subject: abstract slider: fix wrong default direction for horizontal slider (#73) --- src/main/java/io/github/cottonmc/cotton/gui/widget/WAbstractSlider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; } /** -- cgit