You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just found this library and it seems really awsome, thank you for the hard work!
Trying to use onwheel in a div but keep getting a Null return value!
I am still super new at bindgen/web-sys/etc, and don't know if this is a mistake on my side or not!
I have edited the with_task example with the view! as follows:
...
let msg = state.msg;
view! {
<div onwheel={ move |v| Some(Action::Debug(format!("Value received is: {:?}", v))) }>
{ count.to_string()} { msg.to_string() }
...
}
and added the needed code in the the reducer, enum and state;
Action::Debug(s) => {
state.msg = s;
}
Could you tell me if I am missing something?
Kind regards
Calvin
The text was updated successfully, but these errors were encountered:
I have designed squark as not only in browser.
So, it is hard decision that interface should be same as DOM API or not 😟
(In most case, event handler needs a part property of argument)
Hello!
I just found this library and it seems really awsome, thank you for the hard work!
Trying to use
onwheel
in a div but keep getting a Null return value!I am still super new at bindgen/web-sys/etc, and don't know if this is a mistake on my side or not!
I have edited the
with_task
example with theview!
as follows:and added the needed code in the the reducer, enum and state;
Could you tell me if I am missing something?
Kind regards
Calvin
The text was updated successfully, but these errors were encountered: