From 4124fad25abbbb0b14629de31c349a9fb05629b8 Mon Sep 17 00:00:00 2001 From: NopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com> Date: Wed, 4 Oct 2023 23:31:19 +1100 Subject: Only allow scrolling when there is no tooltip rendered (#851) --- .../io/github/moulberry/notenoughupdates/miscgui/GuiItemRecipe.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') 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)); -- cgit