| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| README.md | 2026-05-26 | 1.7 kB | |
| v1.0.4 source code.tar.gz | 2026-05-26 | 167.0 MB | |
| v1.0.4 source code.zip | 2026-05-26 | 167.9 MB | |
| Totals: 3 Items | 334.9 MB | 1 | |
NippleJS v1.0.4
A small patch release fixing a regression in multi-manager pointer event handling. Thanks again @akromann for the follow-up in #246.
🌐 Documentation · 🎮 Interactive Demos · 📦 npm
🐛 Bug Fixes
- Multiple managers closed each other when using pointer events —
Factory.cleanInactiveTouches()treated[evt.identifier]as the full set of active pointers for non-touch events, causing every joystick with a differentpointerIdto be force-ended on eachpointerdown/pointerup. The cleanup now runs only forTouchEvents (which carry the completetoucheslist); per-pointerpointerup/pointercancelalready handles its own cleanup. Also snapshots the joystick map before iterating to avoid mutation during the loop. (2c087f9) TouchListiteration tightened —processEvents()now wrapsevt.changedToucheswithArray.from()for broader TypeScript/iterator compatibility. (653b81d)
✅ Tests
- Added regression coverage for
cleanInactiveTouchesensuring pointer events don't force-end sibling joysticks, and thatTouchEventcleanup still removes truly inactive joysticks. (2721cf4)
Full Changelog: https://github.com/yoannmoinet/nipplejs/compare/v1.0.3...v1.0.4