touches
Raw touches: where the first finger is (x, y) from the moment it lands.
Verwendung
Track raw touch movement over a drawing surface.
// Track raw touch movement over a drawing surface.
import { Box, touches } from 'kuito';
export function TouchSurface() {
const input = touches({ onChange: (event) => console.log(event.changeX, event.changeY) });
return <Box gestures={[input]} width={240} height={240} backgroundColor="#e2e8f0" />;
}Signaturen
(options?: TouchesOptions): TouchesGestureParameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
options | TouchesOptions | Nein | — |
Rückgabe
Generiert aus den öffentlichen TypeScript-Deklarationen: Signaturen, Props und Standardwerte stammen aus der geprüften Quelle, Beschreibungen aus deren JSDoc. Kein Standardwert ist erfunden.