pointerId

Jump to: navigation, search

pointerId

This page has been flagged with the following issues:

High-level issues:


W3C Working Draft

Summary

A unique identifier for the pointer causing the event

Property of dom/PointerEvent

Syntax

Note: This property is read-only.

var result = event.pointerId;

Return Value

Returns an object of type Number.

Needs Examples: This section should include examples.

Usage

This identifier must be unique from all other active pointers at the time. A user agent may recycle previously retired values for pointerId from previous active pointers, if necessary.

If the device producing the event is a mouse, then the pointerId must be 1. Device types other than mouse must not have a pointerId of 1.



Compatibility

Desktop

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic Support ?
?
IE10
?
?

Mobile

Feature Android BlackBerry Chrome for mobile Firefox Mobile (Gecko) IE Mobile Opera Mobile Opera Mini Safari Mobile
Basic support ? ? ? ? ? ? ? ?


Compatibility notes

Browser Version Note
Internet Explorer 10 The PointerEvent object and associated events are supported with the MS prefix. E.g., MSPointerEvent