UNPKG

js-draw

Version:

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

18 lines (17 loc) 627 B
import { InputEvt } from '../../inputEvents'; import InputMapper from './InputMapper'; export default class ContextMenuRecognizer extends InputMapper { private canShowContextMenu; private contextMenuTriggerPointer; private contextMenuStartPoint; private stationaryDetector; private clickTolerance; constructor(); /** * In general, only certain events (i.e. touchscreens) are expected to be able to * create long-press menus. This method checks whether `event` was generated by * one such device. */ private canMakeLongPressMenuEvent; onEvent(event: InputEvt): boolean; }