Every Gesture Library on the Web is Wrong. Here's Why.

typescript dev.to

Every gesture library hooks into DOM events. Hammer.js (deprecated). use-gesture (React-only). interact.js (DOM-dependent). But a gesture is just math. A swipe is fast displacement along one axis. A tap is low drift over short time. A flick is high velocity over minimal distance. None of this requires a browser. Introducing @aumiqx/gesture Pure-math gesture recognition for JavaScript. ~6KB. Zero dependencies. Works in React, Node.js, Canvas, WebGL, Deno, Bun, or a server analyzing

Read Full Tutorial open_in_new
arrow_back Back to Tutorials