diff options
author | isXander <xandersmith2008@gmail.com> | 2023-09-24 15:48:15 +0100 |
---|---|---|
committer | isXander <xandersmith2008@gmail.com> | 2023-09-24 15:48:15 +0100 |
commit | d2b67633c1d3ca0c46682b05955dafafd3597f1d (patch) | |
tree | 7e7ae123d0cb945a45eb940a12eb03a4d4e04d80 /common/src/main/java/dev/isxander/yacl3/gui/controllers | |
parent | 554646dbd857e2fab1be8339ce8d0231ef2dbb4c (diff) | |
download | YetAnotherConfigLib-d2b67633c1d3ca0c46682b05955dafafd3597f1d.tar.gz YetAnotherConfigLib-d2b67633c1d3ca0c46682b05955dafafd3597f1d.tar.bz2 YetAnotherConfigLib-d2b67633c1d3ca0c46682b05955dafafd3597f1d.zip |
1.20.2
Diffstat (limited to 'common/src/main/java/dev/isxander/yacl3/gui/controllers')
-rw-r--r-- | common/src/main/java/dev/isxander/yacl3/gui/controllers/slider/SliderControllerElement.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/src/main/java/dev/isxander/yacl3/gui/controllers/slider/SliderControllerElement.java b/common/src/main/java/dev/isxander/yacl3/gui/controllers/slider/SliderControllerElement.java index 5590dbf..32d7561 100644 --- a/common/src/main/java/dev/isxander/yacl3/gui/controllers/slider/SliderControllerElement.java +++ b/common/src/main/java/dev/isxander/yacl3/gui/controllers/slider/SliderControllerElement.java @@ -80,11 +80,11 @@ public class SliderControllerElement extends ControllerWidget<ISliderController< } @Override - public boolean mouseScrolled(double mouseX, double mouseY, double amount) { + public boolean mouseScrolled(double mouseX, double mouseY, double horizontal, double vertical) { if (!isAvailable() || (!isMouseOver(mouseX, mouseY)) || (!Screen.hasShiftDown() && !Screen.hasControlDown())) return false; - incrementValue(amount); + incrementValue(vertical); return true; } |