@dapplets/dapplet-extension
Version:
The Bridge to the Augmented Web.
13 lines (12 loc) • 339 B
TypeScript
export declare class Swiper {
private _touchStartX;
private _touchStartY;
private _touchEndX;
private _touchEndY;
private _callbacks;
private _config;
constructor(el: HTMLElement);
private _touchHandler;
private _fireEvent;
on(event: 'left' | 'right' | 'down' | 'up', callback: () => void): void;
}