diagram-js
Version:
A toolbox for displaying and modifying diagrams on the web
12 lines (10 loc) • 332 B
TypeScript
/**
* Installs a click trap that prevents a ghost click following a dragging operation.
*
* @param eventBus
* @param eventName
*
* @return a function to immediately remove the installed trap.
*/
export function install(eventBus: EventBus, eventName?: string): () => void;
type EventBus = import("../core/EventBus").default;