mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-27 00:12:55 +03:00
redo mouseover when zooming, so that we never have current_selection when unzoomed.
This commit is contained in:
parent
51352d05a9
commit
a1cc53d68a
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user