GlobalTouch

import {GlobalTouch} from 'cabbie-sync';

Global touch object handling global touch commands

Methods

down(x, y): void

x
number
y
number

Finger down on the screen at the given position

flick(xSpeed, ySpeed): void

xSpeed
number
ySpeed
number

Flick on the touch screen using finger motion events. This flick command starts at a particular screen location.

move(x, y): void

x
number
y
number

Move finger on the screen to the given position

scroll(xOffset, yOffset): void

xOffset
number
yOffset
number

Scroll on the touch screen using finger based motion events according to an offset

up(x, y): void

x
number
y
number

Finger up on the screen at the given position