Demo misc fix
This commit is contained in:
parent
ba5429b938
commit
7fb22892cc
|
@ -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",
|
||||||
|
|
Loading…
Reference in a new issue