bevacqua / dragula

:ok_hand: Drag and drop so simple it hurts
https://bevacqua.github.io/dragula/
MIT License
22.01k stars 1.97k forks source link

Mirror image issues #601

Open leachryan opened 5 years ago

leachryan commented 5 years ago

Fixed a performance issue occurring when dragging an element that contains child elements. A mirror image was being created for each child image as well as the containing element. This lead to performance issues when starting to drag and waiting for elements to settle, so that the element could be dropped. This fix just checks if a mirror image already exists, and if so, doesn't append another one.