three-story-controls

Home > three-story-controls > SwipeAdaptorEvent

SwipeAdaptorEvent interface

Event: Fired when when swipe are registered

Signature:

export interface SwipeAdaptorEvent extends DiscreteEvent 

Extends: DiscreteEvent

Remarks

The sign represents the direction of the swipe, y = 1 when swiping down-to-up, and x = 1 when swiping left-to-right

Properties

Property Type Description
x -1 | 1 | 0  
y -1 | 1 | 0