mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 02:38:53 +01:00
internal/ui: bug fix: wrong calculation of wheel scrolling
Closes #2487
This commit is contained in:
parent
102a2d2138
commit
14688348a8
@ -176,8 +176,8 @@ func (i *Input) update(window *glfw.Window, context *context) error {
|
||||
// As this function is called from GLFW callbacks, the current thread is main.
|
||||
i.ui.m.Lock()
|
||||
defer i.ui.m.Unlock()
|
||||
i.scrollX = xoff
|
||||
i.scrollY = yoff
|
||||
i.scrollX += xoff
|
||||
i.scrollY += yoff
|
||||
}))
|
||||
})
|
||||
if i.keyPressed == nil {
|
||||
|
Loading…
Reference in New Issue
Block a user