make zooming always work if cursor is grabbed

Former-commit-id: e07bb0746fa117f045d62919a4ca55a8eb0c6cf7
This commit is contained in:
Imbris 2019-04-14 20:53:42 -04:00
parent e755afce91
commit 571e319a62

View File

@ -1537,7 +1537,7 @@ impl Hud {
}
true
}
WinEvent::Zoom(_) => !self.ui.no_widget_capturing_mouse(),
WinEvent::Zoom(_) => !self.cursor_grabbed && !self.ui.no_widget_capturing_mouse(),
WinEvent::KeyDown(Key::Enter) => {
self.ui.focus_widget(if self.typing() {
None