mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-19 19:59:56 +00:00
Disable Record Mouse Scroll for SubGui
This commit is contained in:
1 parent
bdf3e239a2
commit
277b8aab7f
2 files changed
+6
-3
No files matched your search
@@ -273,8 +273,11 @@ public abstract class GuiNPCInterface extends GuiScreen
|
||||
guiScrollableComponent.drawScreen(i, j, f, guiScrollableComponent.isMouseOver(i,j)?mouseScroll:0);
|
||||
}
|
||||
|
||||
if(subgui != null)
|
||||
subgui.drawScreen(i,j,f);
|
||||
if(subgui != null){
|
||||
recordScroll = false;
|
||||
subgui.drawScreen(i,j,f);
|
||||
recordScroll = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected void drawBackground() {
|
||||
|
||||
@@ -304,7 +304,7 @@ public class GuiScrollWindow extends GuiScreen implements ITextfieldListener, IC
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if(mouseScroll != 0){
|
||||
nextScrollY -= (float) mouseScroll/15;
|
||||
if(nextScrollY > maxScrollY)
|
||||
|
||||
Reference in new issue
Block a user