uidriver/js: Bug fix: Compile error on CursorMode

This commit is contained in:
Hajime Hoshi 2019-12-14 12:54:21 +09:00
parent dd0d129a22
commit d8f02cf03e

View File

@ -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