dont recalculate mouseover when plugins request it if zoom is too low

This commit is contained in:
Dustin Carlino 2019-01-12 10:52:23 -08:00
parent c50013c583
commit 25d38adf27

View File

@ -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();
}