- added
dragular-model
atribute as new optional way of provideng model when using dragular directive
- Fixed drop event firing before models updated
- Fixed shared.item undefined in grab fn in some cases
- [Braking change!] scope events are renamed (drop => dragulardrop, shadow => dragularshadow, etc..)
- [Braking change!] options.accepts is splited into two methods options.accepts applied with target container options and options.canBeAccepted applied with source container options
- if options.isContainer is used model can be provided via function options.isContainerModel(containerElm)
- [Braking change!] removed dragOverClasses (dragOver events can be used instead);
- share containers between instances, so no need to nameSpace if containers are initialised separately (CAUTION: in case of nested containers you need to use nameSpace for each group/level_of_nesting)
- example with containers which has different options each
- [Braking change!] Now all non-nameSpaced continers are in same domain
- [Braking change!] Models are not updated until drag ends
- css selectors supportet in service
containers
parameter - removed npm workflow
- You can now set
options.copy
to a method. It'll be invoked once per drag to ask whether the element being dragged should be treated as a copy or not - Fixed a bug where starting a drag programatically while an element was being dragged resulted in an exception
- Fixed a bug where
mousedown
would be prevented and focusing draggable inputs wouldn't be possible - Fixed a historical bug, where click on anchors would be ignored within dragula containers in mobile
- Fixed a bug where events wouldn't be gracefully removed if drake were destroyed during a drag event
- Now emits dragend after out to preserve consistency (because drag is emitted before over)
- Fixed another old bug where attempting to remove elements using removeOnSpill on mobile would fail
- Fixed a bug in mobile, caused by 3.0.0, where scrolling would be impossible
- Fixed a bug where dragging would cause text selection in IE8
- [Braking change!] Removed addContainer method, which was previously deprecated
- [Braking change!] Removed removeContainer method, which was previously deprecated
- [Braking change!] Removed delay option in favor of using mousemove
- Drag events now start on the first occurrence of a mousemove event
- If mousemove never fires, then the drag machinery won't start, either
- Changed default value for invalid, now always returns false by default
- Added mirrorContainer option to determine where the mirror gets appended to (defaults to document.body)
- fixing makeArray internal function which causes reversed arrays and so unexpected behaviour
- fixing release (unminidied files had still 2.1.0 version)
- fixing drake.destroy()
- fixed scrolling while drag #14
- added new events fired on elements behind cursor while dragging (dragularenter, dragularleave), could be used to add/remove classes
- added new scope event 'release' when mouse button is released whatever ending it has (drop, cancel, revert..)
- fixed forgoten lint errors
- ngRepeat can be synced with provided model
- gulp workflow (thanks to @alferov)
- gh-pages refactored
- Fixed a bug where
shadow
would trigger multiple times while dragging an element over the same spot - Fixed a bug where adding and removing classes might've caused issues on elements that had foreign CSS classes
- Added an argument to
cloned
event that specifies the kind of clone. Possible values includemirror
andcopy
at the moment - Added
over
event that fires whenever an element is dragged over a container (or whenever a drag event starts) - Added
out
event that fires whenever an element is dragged out of a container (or whenever a drag event ends) - Fixed a bug caused in
2.0.6
where anything would be regarded as adrake
container - Fixed a bug where
isContainer
would be called with ael=null
in some situations - Set
gu-transit
after a drag event has fully started - Fixed a bug where using
.cancel
would throw an exception - Fixed a bug where dragging a copy back to origin after hovering over another container would still result in a copy being made if you never spilled the item
- Deprecated addContainer method
- Deprecated removeContainer method
- Exposed dragula.containers collection
- Introduced dynamic isContainer method
- Can now omit containers argument to dragula(containers, options)
- Can now pass containers as an option
- Differentiate between drag and click using delay option
- Ability to specify which event targets are invalid drag triggers
- mousedown handlers moved from document to containers, due to bugs in namespacing-multiple-instances enviroment
- fixes #6
- changes of dragula 2.0.3 against 1.6.1 implemented
- usage description augmented (#5)
- forgot to build.. sorry
- feat(directive): accept options as JSON string
- fix(directive): minify-safe syntax added to directive, closes #3
- started correctly using Semantic Versioning 2.0.0 http://semver.org/
- avoiding angular.merge, so polyfill part was removed
- boundingBox (dragging element can me moved only in specific area)
- lockX/Y (dragging element can me moved only in specific direction)
- readded feature: automatic direction
- allowing share of containers groups
- custom classes via option.classes;
- accepting arraylike objects as containers array;
- Initial Public Release (dragula 1.6.1, angular 1.4.1);