SetCursorVisibility sets the visibility of the cursor. If true the cursor is visible, if false the cursor is not.
(visible bool)
| 454 | //SetCursorVisibility sets the visibility of the cursor. |
| 455 | //If true the cursor is visible, if false the cursor is not. |
| 456 | func SetCursorVisibility(visible bool) { |
| 457 | if visible { |
| 458 | document.Get("body").Get("style").Set("cursor", "default") |
| 459 | } else { |
| 460 | document.Get("body").Get("style").Set("cursor", "none") |
| 461 | } |
| 462 | } |
| 463 | |
| 464 | // IsAndroidChrome tells if the browser is Chrome for android |
| 465 | func IsAndroidChrome() bool { |