Skip to content
SiteEmail

TouchEvent

Module: JavaScript DOM API

#include <TouchEvent.idl>

Inherits from UIEvent, Event

Name
TouchEventTouchEvent(DOMInternedString type, optional TouchEventInit eventInitDict)
Name
readonly attribute TouchListtouches
readonly attribute booleanctrlKey
readonly attribute booleanshiftKey
readonly attribute booleanaltKey
readonly attribute booleanmetaKey

Public Functions inherited from UIEvent

Name
UIEventUIEvent(DOMInternedString type, optional UIEventInit initEvent)
voidinitUIEvent(optional DOMInternedString type, optional boolean canBubble, optional boolean cancelable, optional Window? view, optional long detail)

Public Attributes inherited from UIEvent

Name
readonly attribute longdetail

Public Functions inherited from Event

Name
EventEvent(DOMInternedString type, optional EventInit initEvent)
voidstopPropagation()
voidpreventDefault()
voidinitEvent(optional DOMInternedString eventTypeArg, optional boolean canBubbleArg, optional boolean cancelableArg)
voidstopImmediatePropagation()

Public Attributes inherited from Event

Name
const unsigned shortNONE
const unsigned shortCAPTURING_PHASE
const unsigned shortAT_TARGET
const unsigned shortBUBBLING_PHASE
readonly attribute DOMStringtype
readonly attribute EventTargettarget
readonly attribute EventTargetcurrentTarget
readonly attribute unsigned shorteventPhase
readonly attribute booleanbubbles
readonly attribute booleancancelable
readonly attribute booleandefaultPrevented
readonly attribute booleancomposed
TouchEvent TouchEvent(
DOMInternedString type,
optional TouchEventInit eventInitDict
)
readonly attribute TouchList touches;
readonly attribute boolean ctrlKey;
readonly attribute boolean shiftKey;
readonly attribute boolean altKey;
readonly attribute boolean metaKey;