@msobiecki/react-marauders-path 1.15.0 → 1.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +31 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -300,14 +300,37 @@ npm lint
|
|
|
300
300
|
|
|
301
301
|
## Project Status
|
|
302
302
|
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
- 🚧
|
|
306
|
-
|
|
307
|
-
-
|
|
308
|
-
-
|
|
309
|
-
-
|
|
310
|
-
-
|
|
303
|
+
### High-level Gesture Hook
|
|
304
|
+
|
|
305
|
+
- 🚧 **`useGesture`** – high-level API for gesture handling
|
|
306
|
+
Supported gestures:
|
|
307
|
+
- `tap` – single tap / click
|
|
308
|
+
- `doubleTap` – quick double tap
|
|
309
|
+
- `press` / `longPress` – press and hold
|
|
310
|
+
- `swipe` – directional swipe
|
|
311
|
+
- `drag` / `pan` – track movement of finger or mouse
|
|
312
|
+
- `pinch` / `zoom` – two-finger pinch / zoom
|
|
313
|
+
|
|
314
|
+
### Low-level Gesture Hooks
|
|
315
|
+
|
|
316
|
+
- 🚧 **`useTap`** – single tap / click
|
|
317
|
+
- 🚧 **`useDoubleTap`** – quick double tap
|
|
318
|
+
- 🚧 **`usePress`** – press and hold (longPress)
|
|
319
|
+
- 🚧 **`useDrag`** – dragging elements (MouseEvent / PointerEvent / TouchEvent)
|
|
320
|
+
- 🚧 **`usePinch`** – two-finger pinch / zoom
|
|
321
|
+
|
|
322
|
+
### Pointer / Mouse Hooks (Unified)
|
|
323
|
+
|
|
324
|
+
- 🚧 **`usePointer`** – unified hook for MouseEvent, PointerEvent, and TouchEvent
|
|
325
|
+
Supported events:
|
|
326
|
+
- `pointerdown`, `pointermove`, `pointerup`, `pointerenter`, `pointerleave`, `pointercancel`
|
|
327
|
+
Filter by pointer type: `mouse` | `touch` | `pen`
|
|
328
|
+
Callback returns unified data e.g.: `x`, `y`, `button`, `type`, `isPrimary`
|
|
329
|
+
|
|
330
|
+
- 🚧 **`useMouse`** – alias for `usePointer` filtered to mouse only
|
|
331
|
+
Supported events:
|
|
332
|
+
- `mousemove`, `mousedown`, `mouseup`, `click`, `dblclick`
|
|
333
|
+
Buttons: `left`, `right`, `middle`
|
|
311
334
|
|
|
312
335
|
## License
|
|
313
336
|
|