연구 설문조사: Blockly 사용 경험을 알려주세요
설문조사 시작
차단 > 터치 > checkTouchIdentifier
Touch.checkTouchIdentifier() 함수
이벤트의 포인터 식별자가 현재 저장된 식별자와 일치하는지 확인합니다. 현재 식별자가 설정되지 않은 경우 이벤트의 식별자를 저장합니다. 이렇게 하면 드래그/동작이 시작되며, 이때 다른 식별자가 있는 포인터 이벤트는 자동으로 무시됩니다.
서명:
export declare function checkTouchIdentifier(e: PointerEvent): boolean;
매개변수
매개변수 |
유형 |
설명 |
e |
PointerEvent |
포인터 이벤트. |
반환:
부울
이벤트의 식별자가 현재 저장된 식별자와 일치하는지 여부입니다.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2024-09-12(UTC)
[null,null,["최종 업데이트: 2024-09-12(UTC)"],[[["This function, `checkTouchIdentifier`, assesses if a pointer event's identifier aligns with a stored identifier, initiating a drag/gesture if it's a new interaction."],["During a drag/gesture, events from other pointer identifiers are disregarded, ensuring focus on the primary interaction."],["The function utilizes a `PointerEvent` to extract the identifier and returns a boolean indicating whether the event's identifier matches the saved one."]]],[]]