Skip to content

ObsidianTouchEventRegisterCallback

Unofficial

Callbacks for controlling a touch gesture’s lifecycle.

Import:

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

Signature:

export interface ObsidianTouchEventRegisterCallback

Methods

MethodReturnsDescription
cancel()voidCancel the current touch gesture.
finish(x, y, z)voidComplete the touch gesture with the final coordinates and velocity.
move(x)voidUpdate the gesture with the current position during movement.

Links to this page: