mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 04:57:27 +00:00
Only input scroll wheel if we're within it
This commit is contained in:
1 parent
d84092eeaf
commit
a0ace95d35
1 file changed
+2
-1
@@ -332,7 +332,8 @@ public abstract class GuiNPCDiagram extends Gui {
|
||||
// ---------------
|
||||
public void drawDiagram(int mouseX, int mouseY) {
|
||||
// Update zoom based on mouse scroll.
|
||||
handleMouseScroll(Mouse.getDWheel());
|
||||
if(isWithin(mouseX, mouseY))
|
||||
handleMouseScroll(Mouse.getDWheel());
|
||||
|
||||
Minecraft mc = Minecraft.getMinecraft();
|
||||
ScaledResolution sr = new ScaledResolution(mc, mc.displayWidth, mc.displayHeight);
|
||||
|
||||
Reference in new issue
Block a user