kutlugsahin / vue-smooth-dnd

Vue wrapper components for smooth-dnd
MIT License
1.73k stars 249 forks source link

Use Original Element for Ghost #41

Open zerosym opened 6 years ago

zerosym commented 6 years ago

Currently the ghost is cloned from the dragged item, and the original is left in place with visibility:hidden applied. The ghost is then appended to the container.

There are a few issues with this that I've come across:

A look at how Trello handles it... they leave behind a simple div placeholder and move the original item out of the container into an upper level body div.

zerosym commented 6 years ago

Just a quick demo of the scroll issue.

https://codesandbox.io/s/pkx885prpx