mmenu-js
Version:
The best javascript plugin for app look-alike on- and off-canvas menus with sliding submenus for your website and webapp.
25 lines (21 loc) • 465 B
TypeScript
/** Options for the drag engine. */
interface dragOption {
area: dragArea;
}
/** How far from the sides the gesture can start. */
interface dragArea {
top?: number | string;
right?: number | string;
bottom?: number | string;
left?: number | string;
}
/** Tresholds for gestures. */
interface dragTreshold {
start?: number;
swipe?: number;
}
/** Set of x and y positions. */
interface dragCoordinates {
x: number;
y: number;
}