Login to follow
Gesture Detection

Gesture Detection (ODC)

Stable version 0.1.0 (Compatible with ODC)
Uploaded on 02 November 2023 by Ifabula Digital Kreasi
Gesture Detection

Gesture Detection (ODC)

Documentation
0.1.0

Gesture detection plugin to handle tap, pan, pinch, press, rotate, and swipe events using HammerJS.

-----------------------------

Components:

1. PanGestureHandler: Recognized when the pointer is down and moved in the allowed direction.

2. PinchGestureHandler: Recognized when two or more pointers are moving toward (zoom-in) or away from each other (zoom-out).

3. PressGestureHandler: Recognized when the pointer is down for x ms without any movement.

4. RotateGestureHandler: Recognized when two or more pointer are moving in a circular motion.

5. SwipeGestureHandler: Recognized when the pointer is moving fast (velocity), with enough distance in the allowed direction.

6. TapGestureHandler: Recognized when the pointer is doing a small tap/click. Multiple taps are recognized if they occur between the given interval and position.

-----------------------------

References: https://hammerjs.github.io/