ag-grid
Version:
Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
36 lines (35 loc) • 1.22 kB
TypeScript
// Type definitions for ag-grid v18.1.2
// Project: http://www.ag-grid.com/
// Definitions by: Niall Crosby <https://github.com/ag-grid/>
import { IEventEmitter } from "../interfaces/iEventEmitter";
import { AgEvent } from "../events";
export interface TapEvent extends AgEvent {
touchStart: Touch;
}
export interface LongTapEvent extends AgEvent {
touchStart: Touch;
touchEvent: TouchEvent;
}
export declare class TouchListener implements IEventEmitter {
static EVENT_TAP: string;
static EVENT_DOUBLE_TAP: string;
static EVENT_LONG_TAP: string;
private static DOUBLE_TAP_MILLIS;
private eElement;
private destroyFuncs;
private moved;
private touching;
private touchStart;
private lastTapTime;
private eventService;
private preventMouseClick;
constructor(eElement: HTMLElement, preventMouseClick?: boolean);
private getActiveTouch(touchList);
addEventListener(eventType: string, listener: Function): void;
removeEventListener(eventType: string, listener: Function): void;
private onTouchStart(touchEvent);
private onTouchMove(touchEvent);
private onTouchEnd(touchEvent);
private checkForDoubleTap();
destroy(): void;
}