Touch

import {Touch} from 'cabbie-sync';

Touch commands relative to a DOM-element

Methods

doubleTap(): void

Double tap with the finger on the element

down(xOffset, yOffset): void

xOffset
number
yOffset
number

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

downAtCenter(): void

Finger down on the screen at the center of the element

longTap(): void

Long tap with the finger on the element

moveTo(xOffset, yOffset): void

xOffset
number
yOffset
number

Move finger to an offset relative to the element

moveToCenter(): void

Move finger to the center of the element

tap(): void

Tap with the finger on the element

up(xOffset, yOffset): void

xOffset
number
yOffset
number

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

upAtCenter(): void

Finger up on the screen at the center of the element