Skip to content

ObsidianTouchEvent

Unofficial

Represents a touch event processed by Obsidian’s gesture system.

Import:

import type { ObsidianTouchEvent } from '@obsidian-typings/obsidian-catalyst-latest';

Signature:

export interface ObsidianTouchEvent

Properties

PropertyTypeDescription
direction'x' | 'y'Primary axis of the touch gesture.
evtTouchEventThe underlying browser touch event.
pointsnumberNumber of touch points in the gesture.
registerCallbackObsidianTouchEventRegisterCallbackCallbacks for managing the touch gesture lifecycle.
startXnumberStarting X coordinate of the touch.
startYnumberStarting Y coordinate of the touch.
targetElHTMLElementElement that the touch event targets.
touchTouchThe primary Touch object from the event.
xnumberCurrent X coordinate of the touch.
ynumberCurrent Y coordinate of the touch.