API Reference 0.3.24dart_web_toolkit_eventDragSupportDetectorNo

DragSupportDetectorNo class

Detector for permutations that do not support drag events.

class DragSupportDetectorNo extends DragSupportDetector {

 bool get isSupported => false;
}

Extends

DragSupportDetector > DragSupportDetectorNo

Properties

final bool isSupported #

Using a run-time check, return true if drag events are supported.

@return true if supported, false otherwise.

docs inherited from DragSupportDetector
bool get isSupported => false;

Methods

bool detectDragSupport() #

inherited from DragSupportDetector
bool detectDragSupport() {
 dart_html.DivElement elem = new dart_html.DivElement();
 try {
   elem.onDragStart.listen((dart_html.Event evt){
     return;
   });
 } on Exception catch(e) {
   return false;
 }
 return true;//(typeof elem.ondragstart) == "function";
}