Merge branch 'master' into breaking

This commit is contained in:
Evan Almloff committed 2024-01-15 12:01:09 -06:00
commit d17a04931b
9 files changed
+99 -80

No files matched your search

+15 -1
View File
@@ -204,13 +204,27 @@ fn app() -> Element {
r#"new FocusEvent("focusout",{bubbles: true})"#,
);
if **received_events == 12 {
if **received_events == 13 {
println!("all events recieved");
desktop_context.close();
}
render! {
div {
div {
width: "100px",
height: "100px",
onmounted: move |evt| {
to_owned![received_events];
async move {
let rect = evt.get_client_rect().await.unwrap();
println!("rect: {:?}", rect);
assert_eq!(rect.width(), 100.0);
assert_eq!(rect.height(), 100.0);
received_events.modify(|x| *x + 1)
}
}
}
button {
id: "button",
onclick: move |event| {