From 12e2e4a1d85dbf0c6b37712a4992cba8b01ef6f0 Mon Sep 17 00:00:00 2001 From: Username404-59 Date: Sun, 2 Feb 2025 22:57:20 +0100 Subject: [PATCH] Fix scrolling Signed-off-by: Username404-59 --- common/src/main/kotlin/fr/username404/snowygui/ClickGui.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/kotlin/fr/username404/snowygui/ClickGui.kt b/common/src/main/kotlin/fr/username404/snowygui/ClickGui.kt index 31aec10..da9780e 100644 --- a/common/src/main/kotlin/fr/username404/snowygui/ClickGui.kt +++ b/common/src/main/kotlin/fr/username404/snowygui/ClickGui.kt @@ -30,7 +30,7 @@ object ClickGui: SnowyScreen() { buttonsContext { this.mouseClicked(d, e, i) }; return super.mouseClicked(d, e, i); } override fun mouseReleased(d: Double, e: Double, i: Int): Boolean { draggingBox = null; buttonsContext { this.mouseReleased(d, e, i) }; return false } - override fun mouseScrolled(d: Double, e: Double, f: Double, scrollY: Double): Boolean { boxContext { scroll(d, e, f) }; return false } + override fun mouseScrolled(d: Double, e: Double, f: Double, scrollY: Double): Boolean { boxContext { scroll(d, e, scrollY) }; return false } override fun mouseDragged(d: Double, e: Double, i: Int, f: Double, g: Double): Boolean { if (i == GLFW.GLFW_MOUSE_BUTTON_LEFT) {