EN
이 콘텐츠는 한국어로 제공되지 않아 영어 버전으로 표시됩니다.

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

 

 

표시:
© 2014 Microsoft