mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 23:37:32 +00:00
Final Mouse Scroll Fix
This commit is contained in:
1 parent
bad2c3157b
commit
4c46496c82
2 files changed
+2
-2
No files matched your search
@@ -64,7 +64,7 @@ public class GuiScriptTextArea extends GuiNpcTextField {
|
||||
container.visibleLines = height / container.lineHeight;
|
||||
|
||||
if(listener instanceof GuiNPCInterface){
|
||||
int k2 = ((GuiNPCInterface) listener).mouseScroll;
|
||||
int k2 = ((GuiNPCInterface) listener).mouseScroll = Mouse.getDWheel();
|
||||
if(k2 != 0) {
|
||||
this.scrolledLine -= k2/40;
|
||||
this.scrolledLine = Math.max(Math.min(this.scrolledLine, this.container.linesCount - this.height / this.container.lineHeight), 0);
|
||||
|
||||
Reference in new issue
Block a user