diff options
author | NopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com> | 2023-10-04 23:31:19 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-04 23:31:19 +1100 |
commit | 4124fad25abbbb0b14629de31c349a9fb05629b8 (patch) | |
tree | a60e5dba36a5d6f6e2166d0c1df65b2ea4e39caf /src | |
parent | 0d7dd0299a9fb62247990ce3c55b9764d8986c26 (diff) | |
download | NotEnoughUpdates-4124fad25abbbb0b14629de31c349a9fb05629b8.tar.gz NotEnoughUpdates-4124fad25abbbb0b14629de31c349a9fb05629b8.tar.bz2 NotEnoughUpdates-4124fad25abbbb0b14629de31c349a9fb05629b8.zip |
Only allow scrolling when there is no tooltip rendered (#851)
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/miscgui/GuiItemRecipe.java | 3 |
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)); |