aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io
diff options
context:
space:
mode:
authorJuuxel <6596629+Juuxel@users.noreply.github.com>2020-05-08 21:52:55 +0300
committerJuuxel <6596629+Juuxel@users.noreply.github.com>2020-05-08 21:52:55 +0300
commit7e61da56c52ebfa00c2fdd036b6dc83d4c0f4e21 (patch)
tree6669821e3da0a082d1fd1b21ebf06ea07a4dd3b6 /src/main/java/io
parent3642230cc2fa592d6ca6800a1092a53f979c1d95 (diff)
downloadLibGui-7e61da56c52ebfa00c2fdd036b6dc83d4c0f4e21.tar.gz
LibGui-7e61da56c52ebfa00c2fdd036b6dc83d4c0f4e21.tar.bz2
LibGui-7e61da56c52ebfa00c2fdd036b6dc83d4c0f4e21.zip
Fix left and right being swapped when dragging sliders
Diffstat (limited to 'src/main/java/io')
-rw-r--r--src/main/java/io/github/cottonmc/cotton/gui/widget/WAbstractSlider.java4
1 files changed, 2 insertions, 2 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 c8570fd..8f93221 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
@@ -144,11 +144,11 @@ public abstract class WAbstractSlider extends WWidget {
axisPos = y;
break;
case LEFT:
- axisPos = x;
+ axisPos = width - x;
break;
case RIGHT:
default:
- axisPos = width - x;
+ axisPos = x;
break;
}