diff options
author | DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> | 2022-06-14 20:21:25 +0200 |
---|---|---|
committer | DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> | 2022-06-14 20:21:25 +0200 |
commit | d5416f1442dc80c816ab8d76c8cceaf391d0f481 (patch) | |
tree | 1b3f004341365faa294b98afa7bbd2f4b9ec5482 /src/main/java/cc/polyfrost/oneconfig/gui/pages/Page.java | |
parent | b6fc6b825455bd2ea3237463044e4e6c53fa2c5a (diff) | |
download | OneConfig-d5416f1442dc80c816ab8d76c8cceaf391d0f481.tar.gz OneConfig-d5416f1442dc80c816ab8d76c8cceaf391d0f481.tar.bz2 OneConfig-d5416f1442dc80c816ab8d76c8cceaf391d0f481.zip |
new sorting behavior
Diffstat (limited to 'src/main/java/cc/polyfrost/oneconfig/gui/pages/Page.java')
-rw-r--r-- | src/main/java/cc/polyfrost/oneconfig/gui/pages/Page.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/cc/polyfrost/oneconfig/gui/pages/Page.java b/src/main/java/cc/polyfrost/oneconfig/gui/pages/Page.java index fdc69bf..5ce6561 100644 --- a/src/main/java/cc/polyfrost/oneconfig/gui/pages/Page.java +++ b/src/main/java/cc/polyfrost/oneconfig/gui/pages/Page.java @@ -50,7 +50,7 @@ public abstract class Page { float scroll = scrollAnimation == null ? scrollTarget : scrollAnimation.get(); final float scrollBarLength = (728f / maxScroll) * 728f; Scissor scissor = ScissorManager.scissor(vg, x, y + scissorOffset, x + 1056, y + 728 - scissorOffset); - //Scissor inputScissor = InputUtils.blockInputArea(x, y, x + 1056, y + scissorOffset); + Scissor inputScissor = InputUtils.blockInputArea(x, y,1056, scissorOffset); int dWheel = Mouse.getDWheel(); if (dWheel != 0) { scrollTarget += dWheel; @@ -64,7 +64,7 @@ public abstract class Page { if (maxScroll <= 728) { draw(vg, x, y); ScissorManager.resetScissor(vg, scissor); - //InputUtils.stopBlock(inputScissor); + InputUtils.stopBlock(inputScissor); return; } draw(vg, x, (int) (y + scroll)); @@ -73,7 +73,7 @@ public abstract class Page { } ScissorManager.resetScissor(vg, scissor); - //InputUtils.stopBlock(inputScissor); + InputUtils.stopBlock(inputScissor); if (!(scrollBarLength > 727f)) { final float scrollBarY = (scroll / maxScroll) * 720f; final boolean isMouseDown = Mouse.isButtonDown(0); |