dnd 2.0.1
dnd: ^2.0.1 copied to clipboard
Drag and Drop for Dart web apps with mouse and touch support.
Changelog #
2.0.1 - 2021-10-07 #
- Fix #36: Add null checks on
_currentDrag.
2.0.0 - 2021-03-06 #
- Migrate to null safety.
1.4.3 - 2019-12-10 #
- Remove unnecessary new keyword.
1.4.2 - 2019-02-13 #
- Fix #30: Cannot initialize Dropzone with List
- Follow more code style conventions.
- Update dependencies.
1.4.0 - 2018-10-12 #
- Add an option
minDragStartDistanceonDraggableto define the minimum distance in pixels that is needed for a drag to start (#26). Default is4pixels. This allows for clicks with tiny movement. The optionclickSuppressionhas been marked as DEPRECATED as it had the same goal but a misleading name.
1.3.0 - 2018-08-15 #
- Align dart version to support Dart 2 (#25).
1.2.0 - 2018-06-21 #
- Support for creating a Draggable with
List<Element>(in addition toElementListandElement).
1.1.0 - 2018-06-21 #
- Remove cursor files. Support for
grab,-webkit-grab,grabbing, and-webkit-grabbingis good enough.
1.0.0 - 2018-06-13 #
- Migrate to Dart 2.
- Since Chrome 56 touch event listeners are treated as passive by default. This disables the possibility to call
preventDefaulton an element which we must do to tell the browser not to scroll while dragging. To fix this in Chrome we set thetouch-actioncss property. With this Chrome will not scroll (none) or only scroll in one direction (pan-yorpan-x).
0.4.0 - 2017-06-27 #
- Fix strong mode errors (#20).
0.3.6 - 2017-06-06 #
- Fix bug: Provide reasonable fallback for event target when mouse position exits viewport (#19).
0.3.5 - 2016-11-22 #
- Handle the edge case where destroy is called while dragging an avatar (#17).
0.3.4 - 2016-10-19 #
- Fix strong-mode type errors (#15).
- Remove Shadow DOM example and (dev)dependency on Polymer (was causing some confusion).
0.3.3 - 2016-09-22 #
- Allow a configurable clickSuppression distance (#13). We found that the click suppression was a little too aggressive for users with less mousing accuracy. They would attempt to click and trigger a small drag. Which then suppressed the click event and prevented the action they intended to complete.
0.3.2 - 2016-07-26 #
- Remove null-aware operator since drone.io uses an old version of Dart that doesn't support this yet.
0.3.1 - 2016-07-26 #
- Support for programmatic drag abort (see issue #11).
0.3.0 - 2015-04-18 #
- BREAKING CHANGE: Refactoring the
AvatarHandler. Only if you've implemented a customAvatarHandleryou might need to do some changes:setPointerEventsNoneandresetPointerEventswere removed and don't need to be called any more. Pointer event styles are handled automatically.
- Fix
AvatarHandlermargin caching: TheAvatarHandleronly cached the margins once for everyDraggable. This caused problems when margins of elements in the sameDraggablehad different margins or the margins were changed. Now the margins are reset after every drag.
0.2.1 - 2015-03-09 #
- Fix #9: Using transformers in the main
pubspec.yamlcaused problems with projects depending on thedndpackage.
0.2.0 - 2015-03-09 #
- Fix #3: Shadow DOM is now supported. A
dnd-retargetattribute must be added to all custom elements where events should be forwarded to the Shadow DOM children. - Fix #7: Add a css class (
dnd-invalidby default) to dropzones when a not-accepted draggable is dragged over.
0.1.4 - 2014-10-20 #
- Add a sortable example.
- Change comments according to new Dart Style Guide rule
(
///instead of/** */). - Move event dispatching calls from EventManager to Draggable (refactoring).
0.1.3 - 2014-08-09 #
- Fix #4: Problem when an ancestor of the dragged element was positioned (relative, absolute, fixed).
0.1.2 - 2014-07-22 #
- Correcting small bug that occurred when setSelectionRange() was called on an element that does not support it.
- Fix Pointer Event bug: Too many event listeners in move, end, cancel.
- Fix for Bug #1 - Not working in Windows 8.1 IE11
- Adding a
cancelledflag toDraggableEventto indicate if a drag ended because of a cancelling operation likeesckey, etc.
0.1.1 - 2014-07-21 #
- Support for IE10 and IE11 touch screens through pointer events.
- Removed
disableTouchanddisableMouseoptions. The goal was to unify touch and mouse dragging, so it should not be necessary to disable one or the other.
0.1.0 - 2014-07-17 #
- First version.