FINALYL FUCKING FIX SCROLL HOLY SHIT
This commit is contained in:
parent
4984dcd716
commit
4d88a5935f
|
@ -229,9 +229,9 @@ public class ClickGuiRewrite extends GuiScreen{
|
||||||
int scroll = Mouse.getEventDWheel();
|
int scroll = Mouse.getEventDWheel();
|
||||||
|
|
||||||
if(scroll > 0) {
|
if(scroll > 0) {
|
||||||
scrollOffset += 30;
|
scrollOffset = MathHelper.clamp_int(scrollOffset+80, getMaxScroll(), 0);
|
||||||
}else if(scroll < 0) {
|
}else if(scroll < 0) {
|
||||||
scrollOffset -= 30;
|
scrollOffset = MathHelper.clamp_int(scrollOffset-80, getMaxScroll(), 0);
|
||||||
}
|
}
|
||||||
super.handleMouseInput();
|
super.handleMouseInput();
|
||||||
}
|
}
|
||||||
|
@ -241,7 +241,7 @@ public class ClickGuiRewrite extends GuiScreen{
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getMaxScroll() {
|
public int getMaxScroll() {
|
||||||
return 500;
|
return Resent.INSTANCE.modManager.modules.size() * -68;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user