MSGestureEvent object

Provides contextual information associated with gesture events.

Internet Explorer 10

 

Syntax


 element.addEventListener(MSGestureEvent, callbackfunction, false); 

DOM Information

Inheritance Hierarchy

 Event
    MSGestureEvent
 UIEvent
    MSGestureEvent

Members

The MSGestureEvent object has these types of members:

Events

The MSGestureEvent object has these events.

EventDescription
MSGestureChange

Triggered when the finger positions associated with the interaction moves on the screen. It will also be triggered during inertia processing.

MSGestureEnd

This event fires when all associated contacts are removed from the surface, and any inertia related movements have stopped..

MSGestureHold

Fires when the user touches a surface and holds the position for an extended period of time.

MSGestureStart

Triggered when the screen is touched on a location over this element.

MSGestureTap

Triggers when user interaction of a touch, mouse click, or pen tap.

MSInertiaStart

Event fires once contact is removed when a move or pan has sufficient speed to continue moving.

 

Methods

The MSGestureEvent object has these methods.

MethodDescription
initGestureEvent

Initializes a newly-created gesture event.

 

Properties

The MSGestureEvent object has these properties.

PropertyAccess typeDescription

detail

Gets additional information about an event.

expansion

Read-only

Diameter of the manipulation area from the last MSGestureEvent of the interaction.

gestureObject

Read-only

Returns the MSGesture object for an element.

rotation

Read-only

Clockwise rotation of the cursor around its own major axis expressed as a value in radians from the last MSGestureEvent of the interaction.

scale

Read-only

Scale factor for zoom from the last MSGestureEvent of the interaction.

timeStamp

Gets the time, in milliseconds, when an event occurred.

translationX

Read-only

Translation along x-axis from the last MSGestureEvent of the interaction.

translationY

Read-only

Translation along y-axis from the last MSGestureEvent of the interaction.

velocityAngular

Read-only

Angular velocity in radians.

velocityExpansion

Read-only

Velocity of expanding manipulation area.

velocityX

Read-only

Velocity of movement along x-axis.

velocityY

Read-only

Velocity of movement along y-axis.

 

Remarks

The MSGestureEvent applies to single touch events on a surface.

Note  For more information about controlling touch behavior and using multi-touch, see Make your site touch-ready.

Note  This item described in this topic requires Windows 8.

See also

touchAction
MSGesture
Gesture flags

 

 

Show:
© 2014 Microsoft