Open KhaldiAmer opened 4 years ago
Hey there, I believe onBeforeCapture
should be asynchronous (should accept a done callback) to support asynchronous evaluations on components
@alexvcasillas true, not much time to do anything worthwhile. Alternatively if there was a way to set custom dimensions on drag to avoid placing a callback in the critical path.
Reference:
@KhaldiAmer did you get any solution?
@KhaldiAmer did you get any solution?
Nothing yet.
I have the same problem
were you guys able to solve this?
I also ran into this problem, does anyone already have a solution?
I have the same problem...
Same..
Running into the same issue. Best solution for now might just be reworking GUI to avoid this kind of interaction imo.
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