Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

currentState property

Returns the current state of a manipulation event.

This property is read-only.

Internet Explorer 10

 

Syntax

JavaScript
state = object.currentState

 

Property values

Type: Integer

ValueCondition
MS_MANIPULATION_STATE_STOPPED
0

The content has stopped moving and there is no active manipulation.

MS_MANIPULATION_STATE_ACTIVE
1

A contact is touching the surface and interacting with content.

MS_MANIPULATION_STATE_INERTIA
2

The content is still moving, but contact with the surface has ended (finger, pen, mouse lifted).

MS_MANIPULATION_STATE_PRESELECT
3

A contact has initiated a cross-slide interaction.

Supported on Windows 8.1 and later.

MS_MANIPULATION_STATE_SELECTING
4

A cross-slide interaction has crossed the selection distance threshold; selection is activated.

Supported on Windows 8.1 and later.

MS_MANIPULATION_STATE_DRAGGING
5

A cross-slide interaction has crossed the drag distance threshold; dragging is activated.

Supported on Windows 8.1 and later.

MS_MANIPULATION_STATE_CANCELLED
6

A cross-slide interaction has been cancelled. This can happen for any of the following reasons:

  • The user hits the Esc key
  • The window lost focus
  • The associated pointer was cancelled (for example, due to a digitizer issue)
  • The drag was cancelled via script (for example, by calling preventDefault on a dragstart or drag event)

Supported on Windows 8.1 and later.

MS_MANIPULATION_STATE_COMMITTED
7

The touch pointer was released and the manipulation has completed.

Supported on Windows 8.1 and later.

 

See also

MSManipulationEvent
onmsmanipulationstatechanged
lastState

 

 

Show:
© 2015 Microsoft