mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Merge branch 'UMR1352/fix#790' into 'master'
Fix issue #790 Closes #790 See merge request veloren/veloren!1439
This commit is contained in:
commit
8617b17569
@ -2400,7 +2400,6 @@ impl Hud {
|
||||
self.force_ungrab = !self.force_ungrab;
|
||||
true
|
||||
},
|
||||
_ if !self.show.ui => false,
|
||||
WinEvent::Zoom(_) => !cursor_grabbed && !self.ui.no_widget_capturing_mouse(),
|
||||
|
||||
WinEvent::InputUpdate(GameInput::Chat, true) => {
|
||||
@ -2624,7 +2623,7 @@ impl Hud {
|
||||
|
||||
if !self.show.ui {
|
||||
// Optimization: skip maintaining UI when it's off.
|
||||
return vec![];
|
||||
return std::mem::take(&mut self.events);
|
||||
}
|
||||
|
||||
if let Some(maybe_id) = self.to_focus.take() {
|
||||
|
Loading…
Reference in New Issue
Block a user