From 231772ee4ef3ae2badb7d7b30f810b3b0eaca237 Mon Sep 17 00:00:00 2001 From: Jason Lee Date: Mon, 17 Feb 2025 13:32:17 +0800 Subject: [PATCH] modal: Remove opacity animation for improve Modal appear. (#633) --- crates/ui/src/modal.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ui/src/modal.rs b/crates/ui/src/modal.rs index 56678451..c0498330 100644 --- a/crates/ui/src/modal.rs +++ b/crates/ui/src/modal.rs @@ -451,7 +451,7 @@ impl RenderOnce for Modal { .with_easing(cubic_bezier(0.32, 0.72, 0., 1.)), move |this, delta| { let y_offset = px(0.) + delta * px(30.); - this.top(y + y_offset).opacity(delta) + this.top(y + y_offset) }, ), ),