Skip to content

Instantly share code, notes, and snippets.

@matthunz
Created November 3, 2023 01:49
Show Gist options
  • Select an option

  • Save matthunz/7a19ffde26954b6e24c4f4c0d5565c6f to your computer and use it in GitHub Desktop.

Select an option

Save matthunz/7a19ffde26954b6e24c4f4c0d5565c6f to your computer and use it in GitHub Desktop.
use dioxus::prelude::*;
use log::LevelFilter;
fn app(cx: Scope) -> Element {
render!(div {
onscroll: |_| todo!(),
width: "200px",
height: "200px",
overflow: "scroll",
div {
width: "200px",
height: "400px",
background: "red"
}
})
}
fn main() {
dioxus_logger::init(LevelFilter::Info).unwrap();
console_error_panic_hook::set_once();
dioxus_web::launch(app);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment