Skip to content

v1.0.4

Latest

Choose a tag to compare

@yoannmoinet yoannmoinet released this 26 May 15:17
ea425b3

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 eventsFactory.cleanInactiveTouches() treated [evt.identifier] as the full set of active pointers for non-touch events, causing every joystick with a different pointerId to be force-ended on each pointerdown/pointerup. The cleanup now runs only for TouchEvents (which carry the complete touches list); per-pointer pointerup/pointercancel already handles its own cleanup. Also snapshots the joystick map before iterating to avoid mutation during the loop. (2c087f9)
  • TouchList iteration tightenedprocessEvents() now wraps evt.changedTouches with Array.from() for broader TypeScript/iterator compatibility. (653b81d)

✅ Tests

  • Added regression coverage for cleanInactiveTouches ensuring pointer events don't force-end sibling joysticks, and that TouchEvent cleanup still removes truly inactive joysticks. (2721cf4)

Full Changelog: v1.0.3...v1.0.4