aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/cc/polyfrost/oneconfig/gui/pages/Page.java
diff options
context:
space:
mode:
authorWyvest <45589059+Wyvest@users.noreply.github.com>2022-07-05 22:37:47 +0900
committerWyvest <45589059+Wyvest@users.noreply.github.com>2022-07-05 22:37:47 +0900
commit206063acf3a6e0edc0d16b07d206aa36207b42d4 (patch)
tree8d0f31d65cfa4b3f85a3d4f7f0844f6df65b2b7e /src/main/java/cc/polyfrost/oneconfig/gui/pages/Page.java
parentfecb67e07ded0d20b12d3bdb48fea3e2e50b7f88 (diff)
downloadOneConfig-206063acf3a6e0edc0d16b07d206aa36207b42d4.tar.gz
OneConfig-206063acf3a6e0edc0d16b07d206aa36207b42d4.tar.bz2
OneConfig-206063acf3a6e0edc0d16b07d206aa36207b42d4.zip
a
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.java2
1 files changed, 1 insertions, 1 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 ddf6a3f..028f098 100644
--- a/src/main/java/cc/polyfrost/oneconfig/gui/pages/Page.java
+++ b/src/main/java/cc/polyfrost/oneconfig/gui/pages/Page.java
@@ -52,7 +52,7 @@ public abstract class Page {
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,1056, scissorOffset);
- int dWheel = Platform.getMousePlatform().getDWheel();
+ int dWheel = (int) Platform.getMousePlatform().getDWheel();
if (dWheel != 0) {
scrollTarget += dWheel;