diff options
Diffstat (limited to 'common/src/main/java/dev/isxander/yacl3/gui/OptionDescriptionWidget.java')
-rw-r--r-- | common/src/main/java/dev/isxander/yacl3/gui/OptionDescriptionWidget.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/src/main/java/dev/isxander/yacl3/gui/OptionDescriptionWidget.java b/common/src/main/java/dev/isxander/yacl3/gui/OptionDescriptionWidget.java index 0732c5f..7aa3715 100644 --- a/common/src/main/java/dev/isxander/yacl3/gui/OptionDescriptionWidget.java +++ b/common/src/main/java/dev/isxander/yacl3/gui/OptionDescriptionWidget.java @@ -122,9 +122,9 @@ public class OptionDescriptionWidget extends AbstractWidget { } @Override - public boolean mouseScrolled(double mouseX, double mouseY, double amount) { + public boolean mouseScrolled(double mouseX, double mouseY, double horizontal, double vertical) { if (isMouseOver(mouseX, mouseY)) { - targetScrollAmount = Mth.clamp(targetScrollAmount - (int) amount * 10, 0, maxScrollAmount); + targetScrollAmount = Mth.clamp(targetScrollAmount - (int) vertical * 10, 0, maxScrollAmount); lastInteractionTime = currentTimeMS(); return true; } |