kutlugsahin / smooth-dnd

drag and drop library for javascript
MIT License
615 stars 148 forks source link

Mouse position as point to rise 'drag-enter' #99

Open dlnsk opened 11 months ago

dlnsk commented 11 months ago

This time the point which rises 'drag-enter' event and animation is the center of ghost element. It's very strange from UX point of view. Sometimes it may be impossible to drop down the ghost if its width much bigger than the target container. Situation doesn't change if you use drag handle. Is there a way or workaround to make mouse position as the hook of 'drag-enter' position?

mikerockett commented 2 months ago

Bumped into this as well. I am working with a dashboard that has columns of different widths, and those widths will be adjustable as well. It would be great if we could tell it to use the cursor position instead – to me, it feels just as natural as the center of the ghost element, which does feel natural in some cases.