touches
Raw touches: where the first finger is (x, y) from the moment it lands.
Utilização
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" />;
}Assinaturas
(options?: TouchesOptions): TouchesGestureParâmetros
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
options | TouchesOptions | Não | — |
Devolve
Gerado a partir das declarações TypeScript públicas: assinaturas, props e predefinições vêm da fonte verificada, as descrições da sua JSDoc. Nenhuma predefinição é inventada.