Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace for the rangy TouchSwipe plugin.

Contains some additional types and interfaces required for the typings.

A jQuery plugin to be used on touch devices such as iPad, iPhone, Android etc.

Detects single and multiple finger swipes, pinches and falls back to mouse 'drags' on the desktop.

Time and distance thresholds can be set to distinguish between swipe gesture and slow drag.

Allows exclusion of child elements (interactive elements) as well allowing page scrolling or page zooming depending on configuration.

See https://github.com/mattbryson/TouchSwipe-Jquery-Plugin.

Index

Type Aliases

PinchHandler: ((this: HTMLElement, event: TriggeredEvent, direction: DirectionsEnum[keyof DirectionsEnum], distance: number, duration: number, fingerCount: FingersEnum[keyof FingersEnum], zoom: number, currentDirection: DirectionsEnum[keyof DirectionsEnum]) => void)

Type declaration

PinchPhaseHandler: ((this: HTMLElement, event: TriggeredEvent, phase: PhasesEnum[keyof PhasesEnum], direction: DirectionsEnum[keyof DirectionsEnum], distance: number, duration: number, fingerCount: FingersEnum[keyof FingersEnum], zoom: number, currentDirection: DirectionsEnum[keyof DirectionsEnum]) => void)

Type declaration

PointerHandler: ((this: HTMLElement, event: TriggeredEvent, target: HTMLElement) => void)

Type declaration

    • Event handler for pointer related events.

      Parameters

      Returns void

SwipeHandler: ((this: HTMLElement, event: TriggeredEvent, direction: DirectionsEnum[keyof DirectionsEnum], distance: number, duration: number, fingerCount: FingersEnum[keyof FingersEnum], fingerData: FingerData, currentDirection: DirectionsEnum[keyof DirectionsEnum]) => void)

Type declaration

SwipePhaseHandler: ((this: HTMLElement, event: TriggeredEvent, phase: PhasesEnum[keyof PhasesEnum], direction: DirectionsEnum[keyof DirectionsEnum], distance: number, duration: number, fingerCount: FingersEnum[keyof FingersEnum], fingerData: FingerData, currentDirection: DirectionsEnum[keyof DirectionsEnum]) => void)

Type declaration

Generated using TypeDoc