mirror of https://github.com/artf/grapesjs.git
Browse Source
The stale-target cache in DropLocationDeterminer#getValidParent compared the current drop-bounds check (container-relative coords) against one computed from the last mouse event's clientX/clientY (viewport coords), making the comparison meaningless. On slow drags, where the hovered node and index stay the same between move samples, the cached target was returned even after the pointer entered an edge band that should escalate the target to the parent. Store the drop-bounds result of each move in lastMoveData and compare against it, keeping the whole check in a single coordinate space. Introduced in #6542 (0.22.10).pull/6803/head
committed by
GitHub
2 changed files with 72 additions and 5 deletions
Loading…
Reference in new issue