Closed ghost closed 4 years ago
I was able to fix this bug by changing the following line 214 in container.ts:
let hitElement = document.elementFromPoint(draggableInfo.position.x, draggableInfo.position.y);
to this:
let hitElement = document.elementFromPoint(draggableInfo.mousePosition.x, draggableInfo.mousePosition.y);
I noticed a weird issue which I'm gonna try to describe in the following.
When user starts dragging in the middle of a card, everything seems fine:
Normal behavior
The issue
However, if I start dragging at the very left or right edge of a card suddenly the drop area is very off, see:
You can see that after entering the right half of the target area smooth-dnd suddenly doesn't recognise it any more. Also, if I keep moving further to the right the cards in the next lange already start moving even if I haven't entered the lane yet.
Any way to fix this?