The TouchEvent type exposes the following members.
Methods
Name | Description | |
---|---|---|
![]() |
get_handled |
Returns true if event marked as handled. Note, value of the event.target field and event.get_sender() method can be different (touch event.target element can be child of the sender element that used to listen event)
|
![]() |
get_sender |
Gets sender element that was used to listen raised event.
|
![]() |
initTouchEvent |
Initializes a newly created TouchEvent object.
|
![]() |
preventDefault |
The preventDefault method stops the browser's default action for this event.
|
![]() |
set_handled |
Value of true prevents further propagation of the current event.
Note, this method available only if you listen for events using TouchEventDispatcher methods.
|
![]() |
stopPropagation |
Stops the bubbling of an event to parent elements.
|
Properties
Name | Description | |
---|---|---|
![]() |
altKey |
If true, the alt key is pressed; otherwise, it is not. If there is no keyboard, this value is false.
|
![]() |
changedTouches |
A collection of Touch objects representing all touches that changed in this event.
|
![]() |
target |
The target of this touch.
|
![]() |
timeStamp |
The event timestamp indicates the time the event was detected.
|