Demo misc fix

This commit is contained in:
JMS55 2023-12-22 18:12:39 -08:00
parent ba5429b938
commit 7fb22892cc

View file

@ -80,7 +80,10 @@ fn SceneTree<'a>(cx: Scope, selected_entity: &'a UseState<Option<Entity>>) -> El
} }
} }
node { node {
onclick: move |_| spawn_entity(), onclick: move |event| {
spawn_entity();
event.stop_propagation();
},
onmouse_enter: enter, onmouse_enter: enter,
onmouse_exit: exit, onmouse_exit: exit,
padding: "8", padding: "8",