From 317aed734365796b53577b4930a9bd76425ad2cf Mon Sep 17 00:00:00 2001 From: Evan Almloff Date: Mon, 5 Dec 2022 20:45:08 -0600 Subject: [PATCH] update remaining examples --- packages/tui/examples/tui_text.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/tui/examples/tui_text.rs b/packages/tui/examples/tui_text.rs index 5268c59f6..dfbf6e4d2 100644 --- a/packages/tui/examples/tui_text.rs +++ b/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",