Skip to main content

HandleGesture

A press on an edit handle that has not been released.

This is an interface exported by @mapcairn/core, checked against version 0.2.0.

Signature​

import type { HandleGesture } from "@mapcairn/core";

interface HandleGesture

Properties​

id​

readonly id: string;

The id of the handle that was pressed.

moved​

readonly moved: boolean;

True once the pointer has left the click tolerance, for good.

origin​

readonly origin: PixelPoint;

Where the pointer went down.

pointer​

readonly pointer: HandlePointer;

Whether the press is a mouse or a finger.

See also​

Source: packages/core/src/draw/gesture.ts:25