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

Method Returns Description
cancel() void Cancel the current touch gesture.
finish(x, y, z) void Complete the touch gesture with the final coordinates and velocity.
move(x) void Update the gesture with the current position during movement.

Links to this page: