Update examples to avoid deprecated fields
This commit is contained in:
1 parent
d7e4fcda80
commit
1bb8b04d87
5 files changed
+8
-13
No files matched your search
@@ -12,7 +12,7 @@ fn app(cx: Scope) -> Element {
|
||||
width: "100%",
|
||||
height: "100%",
|
||||
flex_direction: "column",
|
||||
onwheel: move |evt| alpha.set((**alpha + evt.data.delta_y as i64).min(100).max(0)),
|
||||
onwheel: move |evt| alpha.set((**alpha + evt.data.delta().strip_units().y as i64).min(100).max(0)),
|
||||
|
||||
p {
|
||||
background_color: "black",
|
||||
|
||||
Reference in new issue
Block a user