Touch

import {Touch} from 'cabbie-async';

Touch commands relative to a DOM-element

Methods

doubleTap(): Promise<void>

Double tap with the finger on the element

down(xOffset, yOffset): Promise<void>

xOffset
number
yOffset
number

Finger down on the screen at an offset relative to the element

downAtCenter(): Promise<void>

Finger down on the screen at the center of the element

longTap(): Promise<void>

Long tap with the finger on the element

moveTo(xOffset, yOffset): Promise<void>

xOffset
number
yOffset
number

Move finger to an offset relative to the element

moveToCenter(): Promise<void>

Move finger to the center of the element

tap(): Promise<void>

Tap with the finger on the element

up(xOffset, yOffset): Promise<void>

xOffset
number
yOffset
number

Finger up on the screen at an offset relative to the element

upAtCenter(): Promise<void>

Finger up on the screen at the center of the element