From 571e319a62cc6c36e5d29bfdda5cc494c9e6bcae Mon Sep 17 00:00:00 2001 From: Imbris Date: Sun, 14 Apr 2019 20:53:42 -0400 Subject: [PATCH] make zooming always work if cursor is grabbed Former-commit-id: e07bb0746fa117f045d62919a4ca55a8eb0c6cf7 --- voxygen/src/hud/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/voxygen/src/hud/mod.rs b/voxygen/src/hud/mod.rs index 645fad5ec4..ecdf6508c9 100644 --- a/voxygen/src/hud/mod.rs +++ b/voxygen/src/hud/mod.rs @@ -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