aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com>2023-10-04 23:31:19 +1100
committerGitHub <noreply@github.com>2023-10-04 23:31:19 +1100
commit4124fad25abbbb0b14629de31c349a9fb05629b8 (patch)
treea60e5dba36a5d6f6e2166d0c1df65b2ea4e39caf
parent0d7dd0299a9fb62247990ce3c55b9764d8986c26 (diff)
downloadNotEnoughUpdates-4124fad25abbbb0b14629de31c349a9fb05629b8.tar.gz
NotEnoughUpdates-4124fad25abbbb0b14629de31c349a9fb05629b8.tar.bz2
NotEnoughUpdates-4124fad25abbbb0b14629de31c349a9fb05629b8.zip
Only allow scrolling when there is no tooltip rendered (#851)
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/miscgui/GuiItemRecipe.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscgui/GuiItemRecipe.java b/src/main/java/io/github/moulberry/notenoughupdates/miscgui/GuiItemRecipe.java
index 6dc64ab6..dcc6c629 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/miscgui/GuiItemRecipe.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/miscgui/GuiItemRecipe.java
@@ -342,8 +342,7 @@ public class GuiItemRecipe extends GuiScreen {
// Allow Paging with Scroll-Wheel
// Block scrolling while Tooltip is displayed
- if (NotEnoughUpdates.INSTANCE.config.tooltipTweaks.scrollableTooltips &&
- TooltipTextScrolling.didRenderTooltip) return;
+ if (TooltipTextScrolling.didRenderTooltip) return;
if (Mouse.getEventDWheel() != 0) {
ArrowPagesUtils.onPageSwitchScroll(currentIndex, getCurrentRecipeList().size(), pageChange -> changeRecipe(currentTab, pageChange));