onDrag property
ElementStream<MouseEvent> onDragA stream of drag
events fired when this element currently being dragged.
A drag
event is added to this stream as soon as the drag begins. A drag
event is also added to this stream at intervals while the drag operation is still ongoing.
Other resources
- Drag and drop sample based on the tutorial from HTML5Rocks.
- Drag and drop specification from WHATWG.
Source
@DomName('Element.ondrag') @DocsEditable() ElementStream<MouseEvent> get onDrag => dragEvent.forElement(this);
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-html/Element/onDrag.html