pan
A drag; axis keeps it to one direction.
Usage
Type a shared gesture callback.
// Type a shared gesture callback.
import { Box, pan, tap, type GestureEvent } from 'kuito';
// Any gesture's event carries how many fingers it involves.
const logFingers = (event: GestureEvent) => console.log(`${event.numberOfPointers} finger(s)`);
<Box gestures={[tap({ onEnd: logFingers }), pan({ onStart: logFingers })]} />;Signatures
(options?: PanOptions): PanGestureParameters
| Name | Type | Required | Description |
|---|---|---|---|
options | PanOptions | 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.