From 8c491eb37453a80cc164ba20934a643a94668cb4 Mon Sep 17 00:00:00 2001 From: Allen Ray Date: Tue, 20 Aug 2024 11:41:39 -0400 Subject: [PATCH] fix mouse input scroll (#108) --- backends/opengl/input.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backends/opengl/input.go b/backends/opengl/input.go index 5e971f3..06b425d 100644 --- a/backends/opengl/input.go +++ b/backends/opengl/input.go @@ -61,11 +61,11 @@ func (w *Window) MouseInsideWindow() bool { // MouseScroll returns the mouse scroll amount (in both axes) since the last call to Window.Update. func (w *Window) MouseScroll() pixel.Vec { - return w.input.Curr.Mouse + return w.input.Curr.Scroll } func (w *Window) MousePreviousScroll() pixel.Vec { - return w.input.Prev.Mouse + return w.input.Prev.Scroll } // Typed returns the text typed on the keyboard since the last call to Window.Update.