You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Drag and drop: drag sources, drop targets, OS file drops routed to nodes #33
Reported by the reference shell's port (checked against its source). Not prioritised.
In-app drag: a list row (a picture in an assets panel) is dragged onto a canvas, and the drop is placed where it lands.
OS file drops on three zones (canvas, documents panel, pictures panel). Each shows a hint overlay while a drag hovers it, and accepts or refuses depending on the zone.
Needed in bullseye:
drag sources and drop targets on nodes;
hover feedback for a drag over a target (a paint variant such as drag_over);
the OS's hovered and dropped files (egui's raw.hovered_files and dropped_files) routed to the node under the pointer.
Production DnD design input (user, 2026-11-10): two-level target feedback.drag_accepts(|p| ..) means a compatible drag is in progress anywhere, which is always known. drag_over(|p| ..) means it is over this target, which is known for in-app drags and, for outside drags, from winit 0.31 (#78). Nothing is shown as targeted when the position is unknown. A drop with no position goes to a declared fallback and is scrolled into view. Details are in docs/dnd.md on draft #74.
In-app drag and drop shipped in #87 (v0.1.0-m4c16): sources, targets, drag_preview, two-level feedback, cancel causes, and the resolvers. Outside file drops work as far as winit 0.30 allows: drag_accepts everywhere, and the drop position where the platform gives one (macOS at release), otherwise drop_fallback. Remaining: positioned outside drops (#78), drags across layout scopes (#85), and resize under a held panel (#86). Leaving this open until #78.
Activity
samitbasu commentedon Nov 10, 2026
The spike is #71 (user, 2026-11-10: spike before M5).
samitbasu commentedon Nov 10, 2026
Production DnD design input (user, 2026-11-10): two-level target feedback.
drag_accepts(|p| ..)means a compatible drag is in progress anywhere, which is always known.drag_over(|p| ..)means it is over this target, which is known for in-app drags and, for outside drags, from winit 0.31 (#78). Nothing is shown as targeted when the position is unknown. A drop with no position goes to a declared fallback and is scrolled into view. Details are in docs/dnd.md on draft #74.samitbasu commentedon Nov 10, 2026
The production API sketch in docs/dnd.md (draft #74) is accepted (user, 2026-11-10: no open decisions in it).
drag_source/drop_target::<T>/DragEndDragImage::{Live, Chip(text), None}, with the live node as the defaultdrag_accepts/drag_overtwo-level feedbackIn-app DnD can be built on it. Outside drops follow #78 (winit 0.31).
Gallery: the live image keeps the panel's look; only a chip drag dims…
Another tree no longer erases where a drag would land; test the real …
drag_preview replaces the core's hand-painted chip; the chip moves to…
Tests for drag_preview and the shadcn chip; chip goldens; docs (#33)
Merge pull request #87 from samitbasu/dnd-production
samitbasu commentedon Nov 11, 2026
In-app drag and drop shipped in #87 (v0.1.0-m4c16): sources, targets, drag_preview, two-level feedback, cancel causes, and the resolvers. Outside file drops work as far as winit 0.30 allows:
drag_acceptseverywhere, and the drop position where the platform gives one (macOS at release), otherwisedrop_fallback. Remaining: positioned outside drops (#78), drags across layout scopes (#85), and resize under a held panel (#86). Leaving this open until #78.