react-beautiful-dnd icon indicating copy to clipboard operation
react-beautiful-dnd copied to clipboard

The destination location is not accurate when dragging multiple elements

Open elva329 opened this issue 3 years ago • 2 comments

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 avatar Mar 04 '21 14:03 elva329

@elva329 找到解决办法了吗

afishzz avatar Jul 02 '21 06:07 afishzz

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.

hexwit avatar Jul 12 '22 20:07 hexwit