Explorar o código

update remaining examples

Evan Almloff %!s(int64=2) %!d(string=hai) anos
pai
achega
317aed7343
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/tui/examples/tui_text.rs

+ 1 - 1
packages/tui/examples/tui_text.rs

@@ -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().strip_units().y as i64).min(100).max(0)),
+            onwheel: move |evt| alpha.set((**alpha + evt.inner().delta().strip_units().y as i64).min(100).max(0)),
 
             p {
                 background_color: "black",