/** Movement past this reads as a camera pan rather than a click, in CSS pixels. */ export declare const DRAG_SLOP_PX = 5; export declare const RIGHT_BUTTON = 2; export interface RightPress { x: number; y: number; moved: boolean; } /** * The right button pans the camera as well as opening the menu, so a press counts as a click only * while it has not moved. Duration is ignored: a pan always moves, and a slow click must still open. */ export declare function beginPress(x: number, y: number): RightPress; export declare function trackPress(press: RightPress, x: number, y: number): RightPress; export declare function opensMenu(press: RightPress | null): boolean; export interface ViewportRect { left: number; top: number; right: number; bottom: number; } /** * The viewport owns the right button outright, so the native menu is unwanted anywhere inside it. * Testing the point rather than the event target catches the marker overlays too. */ export declare function withinViewport(rect: ViewportRect, x: number, y: number): boolean; //# sourceMappingURL=contextMenuGesture.d.ts.map