Home > three-story-controls > SwipeAdaptorProps
Properties that can be passed to the SwipeAdaptor constructor
Signature:
export interface SwipeAdaptorProps
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 |