mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 03:38:55 +01:00
uidriver/js: Bug fix: Compile error on CursorMode
This commit is contained in:
parent
dd0d129a22
commit
d8f02cf03e
@ -124,7 +124,7 @@ func (u *UserInterface) adjustPosition(x, y int) (int, int) {
|
||||
}
|
||||
|
||||
func (u *UserInterface) CursorMode() driver.CursorMode {
|
||||
if u.IsCursorVisible {
|
||||
if canvas.Get("style").Get("cursor").String() != "none" {
|
||||
return driver.CursorModeVisible
|
||||
} else {
|
||||
return driver.CursorModeHidden
|
||||
|
Loading…
Reference in New Issue
Block a user