diff options
author | 2020-08-25 01:39:54 +0200 | |
---|---|---|
committer | 2020-08-25 01:39:54 +0200 | |
commit | 72f89ba77f45e5345ef863d5e75b99895419f583 (patch) | |
tree | 1c6bff7bc83ee073fc6232ef1a09d988a3ecdde6 /winit/src/conversion.rs | |
parent | 2ce5df084456a92ed1a228738816cf8398b2e918 (diff) | |
download | iced-72f89ba77f45e5345ef863d5e75b99895419f583.tar.gz iced-72f89ba77f45e5345ef863d5e75b99895419f583.tar.bz2 iced-72f89ba77f45e5345ef863d5e75b99895419f583.zip |
Fix cursor position after a `CursorLeft` event
Diffstat (limited to '')
-rw-r--r-- | winit/src/conversion.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/winit/src/conversion.rs b/winit/src/conversion.rs index 3a8f54f5..638787ab 100644 --- a/winit/src/conversion.rs +++ b/winit/src/conversion.rs @@ -40,6 +40,12 @@ pub fn window_event( y: position.y as f32, })) } + WindowEvent::CursorEntered { .. } => { + Some(Event::Mouse(mouse::Event::CursorEntered)) + } + WindowEvent::CursorLeft { .. } => { + Some(Event::Mouse(mouse::Event::CursorLeft)) + } WindowEvent::MouseInput { button, state, .. } => { let button = mouse_button(*button); |