This repository was archived by the owner on Mar 10, 2024. It is now read-only.
Feature release 1.2.0
- Fix glitches in Chrome: When aborting a drag operation or dragging an element on itself, Chrome on Linux sometimes sends
move
as dropEffect instead ofnone
. This lead to elements sometimes disappearing. Can be reproduced by dragging an element over itself and aborting with Esc key. (issue #14) - Fix dnd-allowed-types in nested lists: When a drop was not allowed due to the wrong element type, the event was correctly propagated to the parent list. Nevertheless, the drop was still executed, because the drop handler didn't check the type again. (issue #16)
- New callbacks: The
dnd-draggable
directive now has a newdnd-dragstart
callback besides the existingdnd-moved
anddnd-copied
. Thednd-list
directive got the callbacksdnd-dragover
anddnd-drag
added, which are also able to abort a drop. (issue #11) - dnd-horizontal-list: Lists can be marked as horizontal with this new attribute. The positioning algorithm then positions the placeholder left or right of other list items, instead of above or below. (issue #19)
- dnd-external-sources: This attribute allows drag and drop accross browser windows. See documentation for details. (issue #9)
- pointer-events: none no longer required: The dragover handler now traverses the DOM until it finds the list item node, therefore it's child elements no longer require the pointer-events: none style.