ionic-framework
Version:
An advanced HTML5 mobile app framework built on Angular2
21 lines (20 loc) • 562 B
TypeScript
/**
* A gesture recognizer class.
*
* TODO(mlynch): Re-enable the DOM event simulation that was causing issues (or verify hammer does this already, it might);
*/
export declare class Gesture {
private _hammer;
private _options;
private _callbacks;
element: HTMLElement;
direction: string;
isListening: boolean;
constructor(element: any, opts?: any);
options(opts: any): void;
on(type: string, cb: Function): void;
off(type: string, cb: Function): void;
listen(): void;
unlisten(): void;
destroy(): void;
}