GlobalTouch

import {GlobalTouch} from 'cabbie-async';

Global touch object handling global touch commands

Methods

down(x, y): Promise<void>

x
number
y
number

Finger down on the screen at the given position

flick(xSpeed, ySpeed): Promise<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): Promise<void>

x
number
y
number

Move finger on the screen to the given position

scroll(xOffset, yOffset): Promise<void>

xOffset
number
yOffset
number

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

up(x, y): Promise<void>

x
number
y
number

Finger up on the screen at the given position