# What changed in nipplejs

> 31 changes in nipplejs 1 from its official release notes, upgrade guides and advisories: 13 breaking, 5 new APIs and options. Each one cited. Sources checked 2026-11-30. HTML: https://unstale.sh/npm/nipplejs/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## nipplejs 1

### Breaking changes

- The add() method is removed. (1.0.0) — [release notes](https://github.com/yoannmoinet/nipplejs/releases/tag/v1.0.0)
- Undefined coordinates are no longer silently treated as 0. (1.0.0) — [release notes](https://github.com/yoannmoinet/nipplejs/releases/tag/v1.0.0)
- Event callbacks now receive the event object, with event data accessed through evt.data, instead of receiving separate evt and data arguments. (1.0.0) — [release notes](https://github.com/yoannmoinet/nipplejs/releases/tag/v1.0.0)
- The hide() method is removed. (1.0.0) — [release notes](https://github.com/yoannmoinet/nipplejs/releases/tag/v1.0.0)
- The joystick element is now accessed through joystick.ui.el instead of joystick.el. (1.0.0) — [release notes](https://github.com/yoannmoinet/nipplejs/releases/tag/v1.0.0)
- Replaces the v0 destroyed event. (1.0.0) — [release notes](https://github.com/yoannmoinet/nipplejs/releases/tag/v1.0.0)
- Replaces manager.get() as a way to retrieve a joystick. (1.0.0) — [release notes](https://github.com/yoannmoinet/nipplejs/releases/tag/v1.0.0)
- The manager.ids property is removed. (1.0.0) — [release notes](https://github.com/yoannmoinet/nipplejs/releases/tag/v1.0.0)
- Replaces manager.id. (1.0.0) — [release notes](https://github.com/yoannmoinet/nipplejs/releases/tag/v1.0.0)
- Replaces the v0 maxNumberOfNipples option. (1.0.0) — [release notes](https://github.com/yoannmoinet/nipplejs/releases/tag/v1.0.0)
- The event fires on every pointermove rather than only when the direction changes. (1.0.0) — [release notes](https://github.com/yoannmoinet/nipplejs/releases/tag/v1.0.0)
- The remove() method is removed. (1.0.0) — [release notes](https://github.com/yoannmoinet/nipplejs/releases/tag/v1.0.0)
- The show() method is removed. (1.0.0) — [release notes](https://github.com/yoannmoinet/nipplejs/releases/tag/v1.0.0)

### New APIs and options

- Move event data includes the per-frame displacement of the joystick base when follow is enabled and the thumb moves past the radius. (1.0.0) — [release notes](https://github.com/yoannmoinet/nipplejs/releases/tag/v1.0.0)
- Manually recalculates the zone bounding box and joystick positions after layout changes. (1.0.0) — [release notes](https://github.com/yoannmoinet/nipplejs/releases/tag/v1.0.0)
- Provides an alternative to manager.get() for accessing joysticks. (1.0.0) — [release notes](https://github.com/yoannmoinet/nipplejs/releases/tag/v1.0.0)
- Returns the current global logging level. (1.0.0) — [release notes](https://github.com/yoannmoinet/nipplejs/releases/tag/v1.0.0)
- Sets the library's console output level globally. (1.0.0) — [release notes](https://github.com/yoannmoinet/nipplejs/releases/tag/v1.0.0)

### Behavior and default changes

- The zone is automatically watched for resize changes, handling most resize scenarios without application code. (1.0.0) — [release notes](https://github.com/yoannmoinet/nipplejs/releases/tag/v1.0.0)
- The library warns at creation time when the zone element has position: static, which causes incorrect joystick positioning. (1.0.0) — [release notes](https://github.com/yoannmoinet/nipplejs/releases/tag/v1.0.0)

### Fixes and other changes

- Multiple managers no longer force-end sibling joysticks on pointerdown or pointerup; cleanup runs only for TouchEvents, while pointerup and pointercancel handle their own cleanup. (1.0.4) — [release notes](https://github.com/yoannmoinet/nipplejs/releases/tag/v1.0.4)
- Each manager now checks its own zone when deciding whether to mount a joystick, allowing multiple managers to open joysticks simultaneously. (1.0.3) — [release notes](https://github.com/yoannmoinet/nipplejs/releases/tag/v1.0.3)
- The handler type now narrows to the payload matching the event name, so users no longer need to cast handlers with `as any`. (1.0.3) — [release notes](https://github.com/yoannmoinet/nipplejs/releases/tag/v1.0.3)
- Prevents rapid touch taps from spawning duplicate joysticks in static mode and its semi-mode and dataOnly static equivalents by making joysticks reusable on end instead of hidden. (1.0.2) — [release notes](https://github.com/yoannmoinet/nipplejs/releases/tag/v1.0.2)
- Prevents addToDom() from redundantly firing the event on every start(). (1.0.0) — [release notes](https://github.com/yoannmoinet/nipplejs/releases/tag/v1.0.0)
- Preserves native event prototype properties so touch positions are not calculated as NaN. (1.0.0) — [release notes](https://github.com/yoannmoinet/nipplejs/releases/tag/v1.0.0)
- Invalid positions no longer lead to undefined variable access after an error is logged. (1.0.0) — [release notes](https://github.com/yoannmoinet/nipplejs/releases/tag/v1.0.0)
- Corrects the hidden state to use visibility instead of the invalid CSS value display: hidden. (1.0.0) — [release notes](https://github.com/yoannmoinet/nipplejs/releases/tag/v1.0.0)
- Fixes mobile dual-stick setups by calling preventDefault only on move events; touch-action: none on the zone handles the rest. (1.0.0) — [release notes](https://github.com/yoannmoinet/nipplejs/releases/tag/v1.0.0)
- A depth guard in processOnStart prevents infinite recursion. (1.0.0) — [release notes](https://github.com/yoannmoinet/nipplejs/releases/tag/v1.0.0)
- Guards window access with typeof checks, allowing safer use in server-side rendering contexts. (1.0.0) — [release notes](https://github.com/yoannmoinet/nipplejs/releases/tag/v1.0.0)
