UNPKG

@mui/x-internal-gestures

Version:

The core engine of GestureEvents, a modern and robust multi-pointer gesture detection library for JavaScript.

11 lines 274 B
import type { Direction } from "../gestures/PanGesture.js"; /** * Get the direction of movement based on the current and previous positions */ export declare function getDirection(previous: { x: number; y: number; }, current: { x: number; y: number; }): Direction;