touches
Raw touches: where the first finger is (x, y) from the moment it lands.
Utilisation
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" />;
}Signatures
(options?: TouchesOptions): TouchesGestureParamètres
| Nom | Type | Requis | Description |
|---|---|---|---|
options | TouchesOptions | Non | — |
Retourne
Généré depuis les déclarations TypeScript publiques : signatures, props et valeurs par défaut viennent de la source vérifiée, les descriptions de sa JSDoc. Aucune valeur par défaut n'est inventée.