- Default
Draggable
plugins get exposed statically onDraggable.Plugins
- Default
AutoScroll
plugin for Draggable, which auto scrolls containers/viewport while dragging yarn watch
task for auto-building the librarysource:original
class option for DraggableDraggable#getDraggableElementsForContainer
method, which returns all draggable elements for a given containerMirrorCreateEvent
, which allows for canceling mirror creationAbstractPlugin
to use as Base class for all Draggable plugins- More test coverage
- Fixed
Sortable
sort logic by excluding mirror and original source elements in calculations Draggable
appendTo
option now uses sources parent element as default, instead ofdocument.body
Draggable
appends over classes after triggering over/out eventsDraggable
appends source into empty containers- Mirrors margin gets removed on creation in the mirror plugin
- Fix for mirror when drag start gets canceled
- Fixes memory leak in Draggable when calling
destroy()
- Fixes race condition for the
source:placed
class - Changed
AbstractEvent#_canceled
to use symbols for private instance variables - Some fixes for the documentation READMEs
- Bundle split, draggable now exports multiple bundles
- Adds JS bundle per module
- Adds legacy bundle for IE11
- Adds axis & dimension constraint options for mirror plugin
- Basic swap animation plugin
- Draggables API is now accessible via inheritance for
Sortable
,Swappable
andDroppable
- Draggables API extended
addSensor
to add sensor dynamicallyremoveSensor
to remove a sensor dynamicallyaddPlugin
to add a plugin dynamicallyremovePlugin
to remove a plugin dynamicallyaddContainer
to add a container dynamicallyremoveContainer
to remove a container dynamicallyisDragging
to check if instance is currently dragging
- New
sortable:sort
event that can be canceled to prevent sorting - New
swappable:swap
event that can be canceled to prevent swapping - Added more documentation
SortableSortedEvent
(sortable:sorted
) now returns correct indexesSortableStartEvent
gets fired now- Plugins and Sensors are exported with namespace
- Removes reflow by removing unused lookup of next scroll parent
- Draggable delay option is now
100
by default, instead of0
- Draggables private methods are now really private
- Sensor improvements
TouchSensor
now prevents scrolling without preventDefaultMouseSensor
now prevents native elements to start dragging during delay- All sensors now listen to document rather than each container
- Code of Conduct
- Contribution guidelines
- Documentation on
appendTo
option forDraggable
- Added concept of
originalSource
- Fix for text selection issue
- Fix for native drag events firing for the
MouseSensor
- Fix for missing
classes
option
- README updates
- Touch improvements
- ForceTouchSensor is not included by default anymore
- Folder/File restructure
- Exports
AbstractEvent
asBaseEvent
- Update node version from
8.2.1
to8.6.0
- Clones event callbacks before triggering (to prevent mutation during iterations)
- Improvements to
closest
utils helper
Initial release