Skip to content

ObsidianTouchEvent

Unofficial

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

Import:

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

Signature:

export interface ObsidianTouchEvent

Properties

Property Type Description
direction 'x' | 'y' Primary axis of the touch gesture.
evt TouchEvent The underlying browser touch event.
points number Number of touch points in the gesture.
registerCallback ObsidianTouchEventRegisterCallback Callbacks for managing the touch gesture lifecycle.
startX number Starting X coordinate of the touch.
startY number Starting Y coordinate of the touch.
targetEl HTMLElement Element that the touch event targets.
touch Touch The primary Touch object from the event.
x number Current X coordinate of the touch.
y number Current Y coordinate of the touch.