diff options
Diffstat (limited to 'common/src/main/java/dev/isxander/yacl3/gui/tab')
3 files changed, 6 insertions, 4 deletions
diff --git a/common/src/main/java/dev/isxander/yacl3/gui/tab/ListHolderWidget.java b/common/src/main/java/dev/isxander/yacl3/gui/tab/ListHolderWidget.java index 5059874..df28d27 100644 --- a/common/src/main/java/dev/isxander/yacl3/gui/tab/ListHolderWidget.java +++ b/common/src/main/java/dev/isxander/yacl3/gui/tab/ListHolderWidget.java @@ -67,8 +67,8 @@ public class ListHolderWidget<T extends ElementListWidgetExt<?>> extends Abstrac } @Override - public boolean mouseScrolled(double mouseX, double mouseY, double amount) { - return this.list.mouseScrolled(mouseX, mouseY, amount); + public boolean mouseScrolled(double mouseX, double mouseY, double horizontal, double vertical) { + return this.list.mouseScrolled(mouseX, mouseY, horizontal, vertical); } @Override diff --git a/common/src/main/java/dev/isxander/yacl3/gui/tab/ScrollableNavigationBar.java b/common/src/main/java/dev/isxander/yacl3/gui/tab/ScrollableNavigationBar.java index da1965f..66ba6a3 100644 --- a/common/src/main/java/dev/isxander/yacl3/gui/tab/ScrollableNavigationBar.java +++ b/common/src/main/java/dev/isxander/yacl3/gui/tab/ScrollableNavigationBar.java @@ -77,8 +77,8 @@ public class ScrollableNavigationBar extends TabNavigationBar { } @Override - public boolean mouseScrolled(double mouseX, double mouseY, double amount) { - this.setScrollOffset(this.scrollOffset - (int)(amount*10)); + public boolean mouseScrolled(double mouseX, double mouseY, double horizontal, double vertical) { + this.setScrollOffset(this.scrollOffset - (int)(vertical*15)); return true; } diff --git a/common/src/main/java/dev/isxander/yacl3/gui/tab/TabExt.java b/common/src/main/java/dev/isxander/yacl3/gui/tab/TabExt.java index 3b29594..8ddc5c7 100644 --- a/common/src/main/java/dev/isxander/yacl3/gui/tab/TabExt.java +++ b/common/src/main/java/dev/isxander/yacl3/gui/tab/TabExt.java @@ -6,4 +6,6 @@ import org.jetbrains.annotations.Nullable; public interface TabExt extends Tab { @Nullable Tooltip getTooltip(); + + default void tick() {} } |