Initializes a newly created TouchEvent object.

Namespace:  C1.Web.iPhone
Assembly:  C1.Web.iPhone.Client (in C1.Web.iPhone.Client.dll)

Syntax

JavaScript
function initTouchEvent(type, canBubble, cancelable, view, detail, screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey, touches, targetTouches, changedTouches, scale, rotation);

Parameters

type
Type: System..::..String
The type of event that occurred.
canBubble
Type: System..::..Boolean
Indicates whether an event can bubble. If true, the event can bubble; otherwise, it cannot.
cancelable
Type: System..::..Boolean
Indicates whether an event can have its default action prevented. If true, the default action can be prevented; otherwise, it cannot.
view
Type: Window
The view (DOM window) in which the event occurred.
detail
Type: System..::..Double
Specifies some detail information about the event depending on the type of event.
screenX
Type: System..::..Double
The x-coordinate of the event’s location in screen coordinates.
screenY
Type: System..::..Double
The y-coordinate of the event’s location in screen coordinates.
clientX
Type: System..::..Double
The x-coordinate of the event’s location relative to the window’s viewport.
clientY
Type: System..::..Double
The y-coordinate of the event’s location relative to the window’s viewport.
ctrlKey
Type: System..::..Boolean
If true, the control key is pressed; otherwise, it is not.
altKey
Type: System..::..Boolean
If true, the alt key is pressed; otherwise, it is not.
shiftKey
Type: System..::..Boolean
If true, the shift key is pressed; otherwise, it is not.
metaKey
Type: System..::..Boolean
If true, the meta key is pressed; otherwise, it is not.
touches
Type: array<C1.Web.iPhone..::..Touch>[]()[][]
A collection of Touch objects representing all touches associated with this event.
targetTouches
Type: array<C1.Web.iPhone..::..Touch>[]()[][]
A collection of Touch objects representing all touches associated with this target.
changedTouches
Type: array<C1.Web.iPhone..::..Touch>[]()[][]
A collection of Touch objects representing all touches that changed in this event.
scale
Type: System..::..Double
The distance between two fingers since the start of an event as a multiplier of the initial distance. The initial value is 1.0. If less than 1.0, the gesture is pinch close (to zoom out). If greater than 1.0, the gesture is pinch open (to zoom in).
rotation
Type: System..::..Double
The delta rotation since the start of an event, in degrees, where clockwise is positive and counter-clockwise is negative. The initial value is 0.0.

Remarks

Use this method to programmatically create a TouchEvent object.

See Also