mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +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