MSGestureEvent object

This topic has not yet been rated - Rate this topic

Provides contextual information associated with gesture events.

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.

PropertyDescription

detail

Gets additional information about an event.

expansion

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

gestureObject

Returns the MSGesture object for an element.

rotation

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

scale

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

timeStamp

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

translationX

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

translationY

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

velocityAngular

Angular velocity in radians.

velocityExpansion

Velocity of expanding manipulation area.

velocityX

Velocity of movement along x-axis.

velocityY

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 Guidelines for Building Touch-friendly Sites.

See also

DOM pointer and gesture event handling sample
msTouchAction
MSGesture
Gesture flags

 

 

Build date: 11/29/2012

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.