fix: Add GlobalTransform to Context Menu to fix clicking through the
menu
This commit is contained in:
@@ -50,6 +50,7 @@ pub fn spawn_context_menu(
|
||||
BackgroundColor(Color::srgb(0.1, 0.1, 0.1)),
|
||||
BorderRadius::all(px(5)),
|
||||
RootMarker::ContextMenu,
|
||||
GlobalTransform::default(),
|
||||
))
|
||||
.with_children(|parent| {
|
||||
parent.spawn(button(
|
||||
|
||||
Reference in New Issue
Block a user