From a650264de5f7af8e420ef2b7131ac3f6f6f0d691 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 13:34:35 +0300 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(bench):=20a=20palette=20row=20?= =?UTF-8?q?can=20land=20on=20a=20lane?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The drop-ghost work left this half undone: a caption dragged from the palette previewed a landing and had nothing to land in. Wire place_sub on the bed so the preview leads somewhere. --- crates/app/src/ui/bench_stance.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/app/src/ui/bench_stance.rs b/crates/app/src/ui/bench_stance.rs index 67df429..c80f7e2 100644 --- a/crates/app/src/ui/bench_stance.rs +++ b/crates/app/src/ui/bench_stance.rs @@ -723,6 +723,9 @@ fn lane_row( }, )) .drag_over::(|d, _, _, _| d.bg(rgb(DARK_RAISED()))) + .on_drop(cx.listener(move |this, drag: &SubPick, window, cx| { + this.place_sub(drag.0, lane, window.mouse_position().x, cx); + })) .on_drag_move(cx.listener( move |this, event: &DragMoveEvent, _, cx| { if !event.bounds.contains(&event.event.position) {