Skip to content

@ue-too/board / index / TouchEventParser

介面: TouchEventParser

定義於: packages/board/src/input-interpretation/raw-input-parser/vanilla-touch-event-parser.ts:19

Interface for touch event parsers.

備註

Touch event parsers bridge DOM TouchEvents and the touch state machine. They provide granular control over which gesture types are enabled.

屬性

disabled

disabled: boolean

定義於: packages/board/src/input-interpretation/raw-input-parser/vanilla-touch-event-parser.ts:21

Whether all touch input is disabled

方法

attach()

attach(canvas): void

定義於: packages/board/src/input-interpretation/raw-input-parser/vanilla-touch-event-parser.ts:27

Attaches to a new canvas element

參數

canvas

HTMLCanvasElement

回傳

void


disable()

disable(): void

定義於: packages/board/src/input-interpretation/raw-input-parser/vanilla-touch-event-parser.ts:29

Disables the parser; the event listeners are still attached just not processing any events

回傳

void


enable()

enable(): void

定義於: packages/board/src/input-interpretation/raw-input-parser/vanilla-touch-event-parser.ts:31

Enables the parser

回傳

void


setUp()

setUp(): void

定義於: packages/board/src/input-interpretation/raw-input-parser/vanilla-touch-event-parser.ts:23

Initializes event listeners

回傳

void


tearDown()

tearDown(): void

定義於: packages/board/src/input-interpretation/raw-input-parser/vanilla-touch-event-parser.ts:25

Removes event listeners and cleans up

回傳

void