MapHandleDrag
One step of a press on an edit handle. A press that starts on a handle
never pans the map and never produces a click.
This is an interface exported by @mapcairn/core, checked against version 0.2.0.
Signature
import type { MapHandleDrag } from "@mapcairn/core";
interface MapHandleDrag
Properties
id
readonly id: string;
The handle that was pressed, as it was when the press began.
latlng
readonly latlng: LatLng;
Where the pointer is.
moved
readonly moved: boolean;
True once the pointer has travelled beyond the click tolerance since it
went down. An end with moved false is a tap on the handle.
phase
readonly phase: "start" | "move" | "end";
start when the pointer goes down on the handle, move while it travels
(only once it has left the click tolerance), end when it is released
or cancelled.