UNPKG

@nekobird/controls

Version:

A collection of opinionated user-interface controls.

21 lines (20 loc) 701 B
import { DragEventManager } from '@nekobird/rocket'; import { SortableList } from './sortable-list'; export declare class EventManager { sortable: SortableList; dragEventManager: DragEventManager; isActive: boolean; activeIdentifier?: string; constructor(sortable: SortableList); initialize(): void; getTargetItemFromDownEvent(event: any): HTMLElement | false; eventCondition: (event: any) => boolean; private handleOnDown; private handleOnLongPress; handleOnDrag: (event: any, manager: any) => void; handleOnUp: (event: any, manager: any) => void; private handleOnCancel; private handleOnActive; private activate; private deactivate; }