Inputs.TouchTracker Class
Uses
Defined in:
samsara/inputs/_TouchTracker.js:9
Catalogues a history of touch events. Useful for creating more complex touch recognition for gestures. Currently only used by TouchInput to track previous touches to compute velocity.
TouchTracker emits these events with the following payload data:
x
- Displacement in x-direction
y
- Displacement in y-direction
identifier
- DOM event touch identifier
timestamp
- Timestamp
count
- DOM event for number of simultaneous touches
history
- History of touches for the gesture
event
- Original DOM event