Skip to content

Decouple and Configure Window Detachment Thresholds in SortZone #8160

@tobiu

Description

@tobiu

Currently, Neo.draggable.container.SortZone uses the same intersection logic (or similar 50% ratios) for both in-app item sorting (swapping items) and window detachment/re-integration. This limits UX tuning, as users often expect a "tear-off" into a new window to happen sooner (e.g., at 20% overlap) than an item swap.

Goal:

  1. Decouple the window detachment/re-integration thresholds from the standard sorting thresholds.
  2. Introduce specific configs (e.g., detachThreshold: 0.2, reattachThreshold: 0.8).
  3. Ensure onDragMove logic uses the correct threshold for the correct action (sorting vs. window boundary checks).

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions