You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import{appWindow}from'@tauri-apps/api/window'appWindow.setCursorVisible(false).then(()=>{console.log('mouse hidden')// this gets printed}).catch((err)=>{console.error(err)})
Describe the bug
When creating a window, and running
window.set_cursor_visible(false)
, the cursor should be hidden when the window opens. It isn't.Reproduction
during setup, run the following:
Expected behavior
The cursor should be hidden/invisible.
Full
tauri info
outputStack trace
Additional context
Setting the CSS
cursor: none;
property works, but requires user interaction to take effect.(to help this come up if someone else searches for it: the method set_cursor_visible on window is not working)
The text was updated successfully, but these errors were encountered: