W3cubDocs

/Haxe JavaScript

DragEvent

package js.html

extends MouseEventUIEventEvent

@:native("DragEvent") Available on js

The DragEvent interface is a DOM event that represents a drag and drop interaction. The user initiates a drag by placing a pointer device (such as a mouse) on the touch surface and then dragging the pointer to a new location (such as another DOM element). Applications are free to interpret a drag and drop interaction in an application-specific way.

Documentation DragEvent by Mozilla Contributors, licensed under CC-BY-SA 2.5.

See:

Constructor

new (type:String, ?eventInitDict:DragEventInit)

Throws:

null DOMError

Variables

read only dataTransfer:DataTransfer

Methods

initDragEvent (type:String, canBubble:Bool, cancelable:Bool, aView:Window, aDetail:Int, aScreenX:Int, aScreenY:Int, aClientX:Int, aClientY:Int, aCtrlKey:Bool, aAltKey:Bool, aShiftKey:Bool, aMetaKey:Bool, aButton:Int, aRelatedTarget:EventTarget, aDataTransfer:DataTransfer):Void

© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/DragEvent.html