aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorshedaniel <daniel@shedaniel.me>2019-12-05 19:00:25 +0800
committershedaniel <daniel@shedaniel.me>2019-12-05 19:00:25 +0800
commit6d8fa50f7b80c6e351b6a2d4051830819092bcfb (patch)
tree6c47712c63cb266ba2da33a812d4fd57e78fc8d2 /src
parent2363595be4794c84ccf3847f8c1e7f87394c09ef (diff)
downloadRoughlyEnoughItems-6d8fa50f7b80c6e351b6a2d4051830819092bcfb.tar.gz
RoughlyEnoughItems-6d8fa50f7b80c6e351b6a2d4051830819092bcfb.tar.bz2
RoughlyEnoughItems-6d8fa50f7b80c6e351b6a2d4051830819092bcfb.zip
Fix #196
Diffstat (limited to 'src')
-rw-r--r--src/main/java/me/shedaniel/rei/gui/widget/EntryListWidget.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main/java/me/shedaniel/rei/gui/widget/EntryListWidget.java b/src/main/java/me/shedaniel/rei/gui/widget/EntryListWidget.java
index a731fff56..c93698b4a 100644
--- a/src/main/java/me/shedaniel/rei/gui/widget/EntryListWidget.java
+++ b/src/main/java/me/shedaniel/rei/gui/widget/EntryListWidget.java
@@ -104,8 +104,11 @@ public class EntryListWidget extends WidgetWithBounds {
@Override
public boolean mouseScrolled(double double_1, double double_2, double double_3) {
- offset(ClothConfigInitializer.getScrollStep() * -double_3, true);
- return true;
+ if (ConfigManager.getInstance().getConfig().isEntryListWidgetScrolled() && bounds.contains(double_1, double_2)) {
+ offset(ClothConfigInitializer.getScrollStep() * -double_3, true);
+ return true;
+ }
+ return super.mouseScrolled(double_1, double_2, double_3);
}
@Override