Initializes a newly created GestureEvent object.

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

Syntax

JavaScript
function initGestureEvent(type, canBubble, cancelable, view, detail, screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey, target, 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) where the event occurred.
detail
Type: System..::..Int64
Specifies some detail information about the event depending on the type of event.
screenX
Type: System..::..Int64
The x-coordinate of the event’s location in screen coordinates.
screenY
Type: System..::..Int64
The y-coordinate of the event’s location in screen coordinates.
clientX
Type: System..::..Int64
The x-coordinate of the event’s location relative to the window's viewport.
clientY
Type: System..::..Int64
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.
target
Type: DOMElement
The target of this gesture.
scale
Type: System..::..Single
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..::..Single
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 GestureEvent object.

See Also