EN
이 콘텐츠는 한국어로 제공되지 않아 영어 버전으로 표시됩니다.
이 항목은 아직 평가되지 않았습니다.- 이 항목 평가

pointerId property

The unique identifier of the contact for a touch, mouse or pen.

This property is read-only.

Internet Explorer 10

Syntax

JavaScript
lID = object.pointerId

Property values

Type: Integer

The unique identifier of the contact for a touch, mouse or pen.

Remarks

This remains the same throughout the lifetime of the pointer. The pointerID is used to associate an MSGesture object with a contact on an element so the element can receive MSGestureEvents.

Examples


//  Adds a pointer to the MSGesture object for the red square
function redListener(evt)
{
    if (evt.type == "MSPointerDown")
    {
        redGesture.addPointer(evt.pointerId);
        return;
    }
    printEvent(evt);
}


See also

MSPointerEvent

 

 

Send comments about this topic to Microsoft

Build date: 1/23/2013

커뮤니티 추가 항목

추가
© 2013 Microsoft. All rights reserved.