W3cubDocs

/Haxe JavaScript

TouchEvent

package js.html

extends UIEventEvent

Available on js

The TouchEvent interface represents an event sent when the state of contacts with a touch-sensitive surface changes. This surface can be a touch screen or trackpad, for example. The event can describe one or more points of contact with the screen and includes support for detecting movement, addition and removal of contact points, and so forth.

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

See:

Constructor

new (type:String, ?eventInitDict:TouchEventInit)

Throws:

null DOMError

Variables

read only altKey:Bool

read only changedTouches:TouchList

read only ctrlKey:Bool

read only metaKey:Bool

read only shiftKey:Bool

read only targetTouches:TouchList

read only touches:TouchList

Methods

initTouchEvent (type:String, canBubble:Bool, cancelable:Bool, view:Window, detail:Int, ctrlKey:Bool, altKey:Bool, shiftKey:Bool, metaKey:Bool, touches:TouchList, targetTouches:TouchList, changedTouches:TouchList):Void

© 2005–2016 Haxe Foundation
Licensed under a MIT license.
http://api.haxe.org/js/html/TouchEvent.html