UNPKG

js-draw

Version:

Draw pictures using a pen, touchscreen, or mouse! JS-draw is a drawing library for JavaScript and TypeScript.

14 lines (13 loc) 405 B
type Options = { onStart: () => void; onEnd: () => void; longPressTimeout?: number; }; /** * Calls `options.onStart` at the start of a long press or hover. * Calls `options.onEnd` when no pointers are within the container. */ declare const listenForLongPressOrHover: (target: HTMLElement, options: Options) => { removeListeners: () => void; }; export default listenForLongPressOrHover;