rename inner on event to data

This commit is contained in:
Jonathan Kelley committed 2024-01-31 16:26:19 -08:00
1 parent 33e90da314
commit a14789eebc
12 files changed
+47 -50

No files matched your search

+1 -1
View File
@@ -12,7 +12,7 @@ fn app() -> Element {
width: "100%",
height: "100%",
flex_direction: "column",
onwheel: move |evt| alpha.set((alpha() + evt.inner().delta().strip_units().y as i64).clamp(0, 100)),
onwheel: move |evt| alpha.set((alpha() + evt.delta().strip_units().y as i64).clamp(0, 100)),
p {
background_color: "black",