From 10f258248bbad8ff35b795597295dc81d8557bfb Mon Sep 17 00:00:00 2001 From: Dmitry Stepanov Date: Wed, 23 Apr 2025 20:39:18 +0300 Subject: [PATCH] open context menus on rmb-up event instead of rmb-down - this is the standard behavior in other UI libs - fixes inability to open some context menus --- fyrox-ui/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fyrox-ui/src/lib.rs b/fyrox-ui/src/lib.rs index 28f3fe1ac..a78c5149f 100644 --- a/fyrox-ui/src/lib.rs +++ b/fyrox-ui/src/lib.rs @@ -2081,7 +2081,7 @@ impl UserInterface { } } } - WidgetMessage::MouseDown { button, .. } => { + WidgetMessage::MouseUp { button, .. } => { if *button == MouseButton::Right && !message.handled() { if let Some(picked) = self.nodes.try_borrow(self.picked_node) { // Get the context menu from the current node or a parent node