three-story-controls

Home > three-story-controls > SwipeAdaptorProps

SwipeAdaptorProps interface

Properties that can be passed to the SwipeAdaptor constructor

Signature:

export interface SwipeAdaptorProps 

Properties

Property Type Description
domElement? HTMLElement (Optional) DOM element to listen to events on. Defaults to document.body
thresholdX? number (Optional) Threshold of pointer’s deltaX to trigger events. Defaults to 60
thresholdY? number (Optional) Threshold of pointer’s deltaY to trigger events. Defaults to 60