W3cubDocs

/Haxe JavaScript

DragEvent

package js.html

extends MouseEventUIEventEvent

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 also:

Constructor

new(type:String, ?eventInitDict:Null<DragEventInit>)

Throws:

null

DOMError

Variables

read onlydataTransfer:DataTransfer

The data that is transferred during a drag and drop interaction.

Methods

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

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