summaryrefslogtreecommitdiffstats
path: root/winit
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-04-17 23:27:50 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-04-17 23:27:50 +0200
commitae546a5b9d10c746ff1785d220397269ff847eee (patch)
tree41a6965798efc2b86ce21781a1e8f79de204dac8 /winit
parentb44f14e1863d251cc960a6252c8d0110f3062215 (diff)
downloadiced-ae546a5b9d10c746ff1785d220397269ff847eee.tar.gz
iced-ae546a5b9d10c746ff1785d220397269ff847eee.tar.bz2
iced-ae546a5b9d10c746ff1785d220397269ff847eee.zip
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.
Diffstat (limited to 'winit')
-rw-r--r--winit/src/conversion.rs6
1 files changed, 0 insertions, 6 deletions
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::<f64>(scale_factor);