-
Notifications
You must be signed in to change notification settings - Fork 2k
Setting cursor on web applies to <body>, not <canvas> #8035
Copy link
Copy link
Closed
Labels
bugSomething is brokenSomething is broken
Description
Describe the bug
On the web platform, calling ui.set_cursor_icon(egui::CursorIcon::None) applies a CSS style to the top <body> instead of the target <canvas>.
To Reproduce
Steps to reproduce the behavior:
- See the demo here
- Move the mouse over the canvas, note that the cursor disappears (because the app draws its own cursor)
- Move the mouse to the right of the canvas, note that the cursor remains gone (note that I override the cursor for the footer, so it shows up down there)
- In the HTML inspector, note that
cursor: none;is applied to the<body>
Expected behavior
The cursor should only be hidden over the canvas
Desktop (please complete the following information):
- OS: macOS 14
- Browser: Firefox 148
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething is brokenSomething is broken