aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/dev/isxander/yacl3/gui/controllers/PopupControllerScreen.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/dev/isxander/yacl3/gui/controllers/PopupControllerScreen.java')
-rw-r--r--src/main/java/dev/isxander/yacl3/gui/controllers/PopupControllerScreen.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/java/dev/isxander/yacl3/gui/controllers/PopupControllerScreen.java b/src/main/java/dev/isxander/yacl3/gui/controllers/PopupControllerScreen.java
index f6a5db3..bb860f0 100644
--- a/src/main/java/dev/isxander/yacl3/gui/controllers/PopupControllerScreen.java
+++ b/src/main/java/dev/isxander/yacl3/gui/controllers/PopupControllerScreen.java
@@ -47,11 +47,19 @@ public class PopupControllerScreen extends Screen {
@Override
public boolean mouseScrolled(double mouseX, double mouseY, /*? if >1.20.1 {*/ double scrollX, /*?}*/ double scrollY) {
+ if (controllerPopup.mouseScrolled(mouseX, mouseY, /*? if >1.20.1 {*/ scrollX, /*?}*/ scrollY)) {
+ return true;
+ }
backgroundYaclScreen.mouseScrolled(mouseX, mouseY, /*? if >1.20.1 {*/ scrollX, /*?}*/ scrollY); //mouseX & mouseY are needed here
return super.mouseScrolled(mouseX, mouseY, /*? if >1.20.1 {*/ scrollX, /*?}*/ scrollY);
}
@Override
+ public void mouseMoved(double mouseX, double mouseY) {
+ controllerPopup.mouseMoved(mouseX, mouseY);
+ }
+
+ @Override
public boolean charTyped(char codePoint, int modifiers) {
return controllerPopup.charTyped(codePoint, modifiers);
}