aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/gui/ContainerScreenOverlay.java
diff options
context:
space:
mode:
authorDanielshe <shekwancheung0528@gmail.com>2019-09-02 20:35:41 +0800
committerDanielshe <shekwancheung0528@gmail.com>2019-09-02 20:35:41 +0800
commitf58357a4c54639b45a76c793376f4a4a0a2e5a3a (patch)
treee8fddc3217911510a866a9024340b4793501dd60 /src/main/java/me/shedaniel/rei/gui/ContainerScreenOverlay.java
parent4bfb43bdc23de6d8263de9c39c48bd2b06e098a5 (diff)
downloadRoughlyEnoughItems-f58357a4c54639b45a76c793376f4a4a0a2e5a3a.tar.gz
RoughlyEnoughItems-f58357a4c54639b45a76c793376f4a4a0a2e5a3a.tar.bz2
RoughlyEnoughItems-f58357a4c54639b45a76c793376f4a4a0a2e5a3a.zip
Scrollbar is a very important element of a list
Diffstat (limited to 'src/main/java/me/shedaniel/rei/gui/ContainerScreenOverlay.java')
-rw-r--r--src/main/java/me/shedaniel/rei/gui/ContainerScreenOverlay.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/me/shedaniel/rei/gui/ContainerScreenOverlay.java b/src/main/java/me/shedaniel/rei/gui/ContainerScreenOverlay.java
index ae6bf5089..63b860136 100644
--- a/src/main/java/me/shedaniel/rei/gui/ContainerScreenOverlay.java
+++ b/src/main/java/me/shedaniel/rei/gui/ContainerScreenOverlay.java
@@ -572,6 +572,13 @@ public class ContainerScreenOverlay extends Widget {
return false;
}
+ @Override
+ public boolean mouseDragged(double double_1, double double_2, int int_1, double double_3, double double_4) {
+ if (!ScreenHelper.isOverlayVisible())
+ return false;
+ return this.getFocused() != null && this.isDragging() && int_1 == 0 ? this.getFocused().mouseDragged(double_1, double_2, int_1, double_3, double_4) : false;
+ }
+
public boolean isInside(double mouseX, double mouseY) {
if (!rectangle.contains(mouseX, mouseY))
return false;