We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
integration
1 parent 3a6f29c commit d33e18eCopy full SHA for d33e18e
examples/integration/src/main.rs
@@ -286,11 +286,17 @@ pub fn main() -> Result<(), winit::error::EventLoopError> {
286
..
287
} = state
288
{
289
- window.set_cursor(
290
- conversion::mouse_interaction(
+ // Update the mouse cursor
+ if let Some(icon) =
291
+ iced_winit::conversion::mouse_interaction(
292
mouse_interaction,
- ),
293
- );
+ )
294
+ {
295
+ window.set_cursor(icon);
296
+ window.set_cursor_visible(true);
297
+ } else {
298
+ window.set_cursor_visible(false);
299
+ }
300
}
301
302
// Draw the interface
0 commit comments