touches
Raw touches: where the first finger is (x, y) from the moment it lands.
Usage
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): TouchesGestureParameters
| Name | Type | Required | Description |
|---|---|---|---|
options | TouchesOptions | No | — |
Returns
Generated from the public TypeScript declarations: signatures, props and defaults come from the checked source, descriptions from its JSDoc. No defaults are invented.