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: v1.0.3...v1.0.4