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 across separate layout scopes (Placed) #85
Found while building production in-app DnD (#33). A drag gesture belongs to the Placed (layout scope) whose source started it, and drop targets laid out by anotherPlaced on the same egui context don't see it. Apps that lay out separate panels as separate eggshell trees can't drag between them. Examples: an assets panel onto a canvas, or a sidebar list into a main view.
Shape to decide: one gesture per egui context, with each Placed contributing its targets (final rects, paint order, layer) to a context-wide resolver at draw time, resolved once after all of them have drawn. That's the same "one resolver over final rects" rule, lifted from one Placed to the context. It interacts with M6 overlays: a popover or sheet is a separate layer and probably a separate Placed.
Tests: a drag from a source in one Placed onto a target in another, the innermost/topmost rule across them, and continuity throughout.
Priority input: the reference shell lays out its whole window as one tree per frame (top bar, rail, sidebar panels, canvas as a custom node, properties, status), so its Assets/Parts → canvas drags stay within one tree and don't need this. The case to watch is M6: if overlays (popovers, sheets) end up as separate trees, a drag into or out of an overlay crosses trees. Decide #85's shape as part of M6's overlay design, not after it.
M6 design (PR #101): overlays live in the same Placed, so this issue isn't an M6 dependency. It stays open for drags across separate Placed; Placed::root_at is the piece to lift to the context if it's built.
Activity
samitbasu commentedon Nov 11, 2026
Priority input: the reference shell lays out its whole window as one tree per frame (top bar, rail, sidebar panels, canvas as a
customnode, properties, status), so its Assets/Parts → canvas drags stay within one tree and don't need this. The case to watch is M6: if overlays (popovers, sheets) end up as separate trees, a drag into or out of an overlay crosses trees. Decide #85's shape as part of M6's overlay design, not after it.samitbasu commentedon Nov 11, 2026
M6 design (PR #101): overlays live in the same Placed, so this issue isn't an M6 dependency. It stays open for drags across separate Placed;
Placed::root_atis the piece to lift to the context if it's built.Keep one overlay stack per LayoutState (Tab stuck in a modal's text f…