mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-11-24 09:24:26 +03:00
dont recalculate mouseover when plugins request it if zoom is too low
This commit is contained in:
parent
c50013c583
commit
25d38adf27
@ -212,7 +212,7 @@ impl<S: UIState> GUI<RenderingHints> for UI<S> {
|
||||
&mut self.cs,
|
||||
&mut self.canvas,
|
||||
);
|
||||
if recalculate_current_selection {
|
||||
if recalculate_current_selection && new_zoom >= MIN_ZOOM_FOR_MOUSEOVER {
|
||||
self.state.mut_state().primary.current_selection = self.mouseover_something();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user