ng-simple-slideshow
Version:
A simple, responsive slideshow for Angular 4+.
13 lines (12 loc) • 392 B
TypeScript
export declare class SwipeService {
private _swipeCoord?;
private _swipeTime?;
/**
* @param {TouchEvent} e
* @param {string} when
* @returns {number}
* @description detect the direction of the swipe, and return a -1 or 1 if the duration is long enough
* else return a 0 to do nothing
*/
swipe(e: TouchEvent, when: string): number;
}