mirror of
https://github.com/FyroxEngine/Fyrox.git
synced 2026-10-12 02:02:20 +00:00
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
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user