Skip to content

Commit

Permalink
fix mouse input scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
Allen Ray committed Aug 20, 2024
1 parent 5fa5c6a commit 6957222
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backends/opengl/input.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 6957222

Please sign in to comment.