React-beautiful-dnd: Cursor not on the right position when dragging an item.

Created on 11 Feb 2020  路  2Comments  路  Source: atlassian/react-beautiful-dnd

Expected behavior

The cursor is on the element being dragged.

Actual behavior

The cursor is away from the element which makes it hard sometimes to drag to the wanted position.

Steps to reproduce

1- Resize draggable elements when onBeforeCapture is triggered.
2- Drag second element to the last element and notice the cursor position while dragging.

Suggested solution?

None for now.

What version of React are you using?

16.11

What version of react-beautiful-dnd are you running?

12.2

What browser are you using?

Version 79.0.3945.130 (64 bits)

Demo

https://codesandbox.io/s/vertical-list-kgs03?fontsize=14&hidenavigation=1&theme=dark

unconfirmed-bug untriaged

Most helpful comment

Hey there, I believe onBeforeCapture should be asynchronous (should accept a done callback) to support asynchronous evaluations on components

All 2 comments

Hey there, I believe onBeforeCapture should be asynchronous (should accept a done callback) to support asynchronous evaluations on components

Was this page helpful?
0 / 5 - 0 ratings