Lynx Gesture
npm install @lynx-js/gesture-runtime-canary@lynx-js/gesture-runtime provides typed gesture primitives and simple composition utilities for Lynx.
- pnpm add @lynx-js/gesture-runtime @lynx-js/react
``tsx
import { useGesture, PanGesture } from '@lynx-js/gesture-runtime';
export default function Example() {
const pan = useGesture(PanGesture).onUpdate((event, stateManager) => {
'main thread';
stateManager.active();
});
return
}
``