fix(ui): skip firing collision detection on dnd when droppable scrolled out

Requires some additional logic in the collision detection algorithm.

Closes #4621
This commit is contained in:
psychedelicious
2023-09-21 16:41:35 +10:00
committed by Kent Keirsey
parent b4790002c7
commit 6d1057c560
3 changed files with 41 additions and 3 deletions

View File

@ -31,7 +31,7 @@ const IAIDroppable = (props: IAIDroppableProps) => {
insetInlineStart={0}
w="full"
h="full"
pointerEvents="none"
pointerEvents={active ? 'auto' : 'none'}
>
<AnimatePresence>
{isValidDrop(data, active) && (