diff --git a/crates/app/src/tests/layout.rs b/crates/app/src/tests/layout.rs index cf8efd1..a04bf0d 100644 --- a/crates/app/src/tests/layout.rs +++ b/crates/app/src/tests/layout.rs @@ -2694,6 +2694,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 cf60200..38f0fb3 100644 --- a/crates/app/src/ui/bench_stance.rs +++ b/crates/app/src/ui/bench_stance.rs @@ -506,11 +506,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| {