react-beautiful-dnd
react-beautiful-dnd copied to clipboard
The destination location is not accurate when dragging multiple elements
Issue
When dragging multiple elements within the same column, the destination place which is being dragged over has some offset deviation
Expected behavior
The destination location is accurate.
Steps to reproduce
Check the multi-drag behaviors based on the provided demo(https://codesandbox.io/s/vq4mol27r0).
Suggested solution?
Provide an API that could detect the position(x, y) of the current dragging object so that we can customize the animation or behavior when the object is being dragged to some specific position.
What version of React
are you using?
^16.8.0
What version of react-beautiful-dnd
are you running?
Lastest version
What browser are you using?
Chrome
Demo
https://codesandbox.io/s/vq4mol27r0
@elva329 找到解决办法了吗
I have the same problem. I think onBeforeCapture just captures all dimensions however shouldn't be. So it is not clear how to change draggable size before actual drag starts. May be problem with sync with state. I don't know. But I have exactly same issue.