From ae546a5b9d10c746ff1785d220397269ff847eee Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Fri, 17 Apr 2020 23:27:50 +0200 Subject: Revert "Merge pull request #289 from hecrj/fix/cursor-events" `winit` seems to produce `CursorEntered` and `CursorLeft` events after wheel scrolling for no apparent reason (?). This causes annoying flickering when hovering some widgets on a scrollable. I should investigate this further. We are rolling back the fix for the time being. --- winit/src/conversion.rs | 6 ------ 1 file changed, 6 deletions(-) (limited to 'winit/src/conversion.rs') diff --git a/winit/src/conversion.rs b/winit/src/conversion.rs index 78686424..eaa26ace 100644 --- a/winit/src/conversion.rs +++ b/winit/src/conversion.rs @@ -27,12 +27,6 @@ pub fn window_event( height: logical_size.height, })) } - WindowEvent::CursorEntered { .. } => { - Some(Event::Mouse(mouse::Event::CursorEntered)) - } - WindowEvent::CursorLeft { .. } => { - Some(Event::Mouse(mouse::Event::CursorLeft)) - } WindowEvent::CursorMoved { position, .. } => { let position = position.to_logical::(scale_factor); -- cgit