UNPKG

1.35 kBTypeScriptView Raw
1import { App } from '../components/app/app';
2import { Config } from '../config/config';
3import { DomController } from '../platform/dom-controller';
4import { GestureController } from '../gestures/gesture-controller';
5import { Platform } from '../platform/platform';
6/**
7 * @hidden
8 */
9export declare class TapClick {
10 private plt;
11 private app;
12 private gestureCtrl;
13 private disableClick;
14 private usePolyfill;
15 private activator;
16 private startCoord;
17 private activatableEle;
18 private events;
19 private pointerEvents;
20 private lastTouchEnd;
21 private dispatchClick;
22 constructor(config: Config, plt: Platform, dom: DomController, app: App, gestureCtrl: GestureController);
23 pointerStart(ev: any): boolean;
24 pointerMove(ev: UIEvent): void;
25 pointerEnd(ev: any, pointerEventType: number): void;
26 pointerCancel(ev: UIEvent): void;
27 shouldCancelEvent(ev: UIEvent): boolean;
28 click(ev: any): void;
29 private shouldCancelClick(ev);
30 private profileClickDelay(ev);
31 handleTapPolyfill(ev: any): void;
32 isDisabledNativeClick(): boolean;
33}
34/**
35 * @hidden
36 */
37export declare function isActivatable(ele: HTMLElement): boolean;
38/**
39 * @hidden
40 */
41export declare function setupTapClick(config: Config, plt: Platform, dom: DomController, app: App, gestureCtrl: GestureController): () => TapClick;