redo mouseover when zooming, so that we never have current_selection when unzoomed.

This commit is contained in:
Dustin Carlino 2019-10-14 15:15:56 -07:00
parent 51352d05a9
commit a1cc53d68a

View File

@ -40,6 +40,7 @@ impl<'a> EventCtx<'a> {
pub fn redo_mouseover(&self) -> bool { pub fn redo_mouseover(&self) -> bool {
self.input.window_lost_cursor() self.input.window_lost_cursor()
|| (!self.canvas.is_dragging() && self.input.get_moved_mouse().is_some()) || (!self.canvas.is_dragging() && self.input.get_moved_mouse().is_some())
|| self.input.get_mouse_scroll().is_some()
} }
pub fn texture(&self, filename: &str) -> Color { pub fn texture(&self, filename: &str) -> Color {