From d15f888c5fff4762b3e555a8635ba8349f9e6975 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Fri, 21 Aug 2026 20:33:00 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(app):=20shrink=20dissolve=20?= =?UTF-8?q?hit=20target?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/app/src/tests/layout.rs | 22 ++++++++++++++++++++++ crates/app/src/ui/bench_stance.rs | 7 ++----- 2 files changed, 24 insertions(+), 5 deletions(-) diff --git a/crates/app/src/tests/layout.rs b/crates/app/src/tests/layout.rs index bbd6192..ffb86d5 100644 --- a/crates/app/src/tests/layout.rs +++ b/crates/app/src/tests/layout.rs @@ -2688,6 +2688,28 @@ fn darkroom_bench_wires_transition_controls_and_lane_drop_cue() { "the Darkroom clip lost its transition affordance: {needle}" ); } + let dissolve = &clip[clip + .find(".when(dissolves, |d| {") + .expect("the dissolve affordance") + ..clip + .find(".when(audio && trims(span)") + .expect("the fade handles")]; + assert!( + dissolve.contains(".w(px(FADE_HANDLE_W))"), + "dissolve click target no longer matches fade-handle width" + ); + assert!( + dissolve.contains(".h(px(FADE_HANDLE_H))"), + "dissolve click target no longer matches fade-handle height" + ); + assert!( + !dissolve.contains("h_full()"), + "dissolve click target still covers the clip body" + ); + assert!( + !dissolve.contains(".w(px(scale"), + "dissolve hit test still tracks transition width" + ); let lane = &bench[bench.find("fn lane_row(").expect("the lane renderer") ..bench diff --git a/crates/app/src/ui/bench_stance.rs b/crates/app/src/ui/bench_stance.rs index 69802f7..6dfe56a 100644 --- a/crates/app/src/ui/bench_stance.rs +++ b/crates/app/src/ui/bench_stance.rs @@ -496,11 +496,8 @@ fn clip_box( .absolute() .right_0() .top_0() - .h_full() - .w(px(scale - .width_px(f64::from(clip.transition_out) / player.fps) - .min(width))) - .occlude() + .w(px(FADE_HANDLE_W)) + .h(px(FADE_HANDLE_H)) .cursor_pointer() .tooltip(move |_, cx| cx.new(|_| Tip(dissolve_tip.clone())).into()) .on_click(cx.listener(move |this, _, _, cx| {