Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

isPrimary property

Returns whether the pointer associated with the event is the primary pointer for the current mouse, touch, or pen interaction.

This property is read-only.

Internet Explorer 10

 

Syntax

JavaScript
bPrimary = object.isPrimary

 

Property values

Type: boolean

Flag that indicates whether the pointer is the primary pointer.

Remarks

A single pointer is identified as the primary pointer from all current mouse, touch, and pen user interactions on the system, including activity outside Windows Internet Explorer. As such, the primary pointer might not be associated with your app or site.

The first contact in a multi-touch interaction is set as the primary pointer. Once a primary pointer is identified, all contacts must be lifted before a new contact can be identified as a primary pointer.

For apps or sites that don't process pointer input, only the primary pointer's events are promoted to mouse events. For more info about creating touch-enabled sites, see Guidelines for Building Touch-friendly Sites

Note  This item described in this topic requires Windows 8.
 

See also

PointerEvent
Guidelines for Building Touch-friendly Sites
pointerType
onmspointerdown

 

 

Show:
© 2017 Microsoft