mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 02:37:27 +00:00
Fix Scrolling over Parent with SubGui
This commit is contained in:
1 parent
c9755ce1e1
commit
bdf3e239a2
1 file changed
+6
-4
@@ -297,12 +297,14 @@ public class GuiScrollWindow extends GuiScreen implements ITextfieldListener, IC
|
||||
}
|
||||
}
|
||||
|
||||
for(GuiCustomScroll guiCustomScroll : scrolls.values()) {
|
||||
if (guiCustomScroll.isMouseOver(mouseX, (int) (mouseY + scrollY))) {
|
||||
return;
|
||||
if(!parent.hasSubGui()){
|
||||
for(GuiCustomScroll guiCustomScroll : scrolls.values()) {
|
||||
if (guiCustomScroll.isMouseOver(mouseX, (int) (mouseY + scrollY))) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if(mouseScroll != 0){
|
||||
nextScrollY -= (float) mouseScroll/15;
|
||||
if(nextScrollY > maxScrollY)
|
||||
|
||||
Reference in new issue
Block a user