mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 11:18:54 +01:00
internal/uidriver/js: Bug fix: SetCursorMode didn't work
This commit is contained in:
parent
d00d0c8556
commit
3c1226a227
@ -136,12 +136,12 @@ func (u *UserInterface) SetCursorMode(mode driver.CursorMode) {
|
||||
|
||||
switch mode {
|
||||
case driver.CursorModeVisible:
|
||||
if u.cursorHidden {
|
||||
if !u.cursorHidden {
|
||||
return
|
||||
}
|
||||
u.cursorHidden = false
|
||||
case driver.CursorModeHidden:
|
||||
if !u.cursorHidden {
|
||||
if u.cursorHidden {
|
||||
return
|
||||
}
|
||||
u.cursorHidden = true
|
||||
|
Loading…
Reference in New Issue
Block a user