unstale

npm / pixi-viewport

pixi-viewport

What changed in pixi-viewport 7, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-12.

9 breaking1 deprecations10 new APIs and options1 performance3 behavior and defaults1 tooling14 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.2.12 on npm

pixi-viewport 739 changes

Breaking changes 9

  • removeOnInterrupt also stops animation on wheel events.

    7.0.0release notes

  • Built-in plugins always run in their default order, regardless of the order in which they are added. User plugins still go at the end unless an index is passed.

    7.0.0release notes

  • Calling clamp() without options no longer clamps.

    7.0.0release notes

  • Setting bottom to false means that side is not clamped; it is no longer treated as 0.

    7.0.0release notes

  • Setting left to false means that side is not clamped; it is no longer treated as 0.

    7.0.0release notes

  • Setting right to false means that side is not clamped; it is no longer treated as 0.

    7.0.0release notes

  • Setting top to false means that side is not clamped; it is no longer treated as 0.

    7.0.0release notes

  • Adds scrolling when the mouse is near screen edges, with speed measured in screen pixels per second.

    7.0.0release notes

  • With passiveWheel false, stopping a wheel event from reaching the viewport also prevents the page from scrolling.

    7.0.0release notes

Deprecations 1

  • mouseEdges() is deprecated and remains unchanged.

    7.0.0release notes

New APIs and options 10

  • Setting keepAspectRatio to false clamps one axis at a time, enabling zooming along a single axis.

    7.0.0release notes

  • When true, one-finger touch drags are ignored so the page can scroll.

    7.0.0release notes

  • The event type is exported.

    7.0.0release notes

  • Accepts an optional Rectangle to write results into.

    7.0.0release notes

  • The mouse-edge-start event is emitted.

    7.0.0release notes

  • The event type is exported.

    7.0.0release notes

  • When true, wheel events bubbling from other elements, such as HTML overlays, are ignored.

    7.0.0release notes

  • Enables faster trackpad pinch zooming without changing mouse wheel zooming.

    7.0.0release notes

  • Controls trackpad pinch zoom speed; the default of 1 keeps the current speed.

    7.0.0release notes

  • The event type is exported.

    7.0.0release notes

Performance 1

  • The default hit area no longer allocates a new object every frame.

    7.0.0release notes

Behavior and default changes 3

  • An exports map makes Node imports load the ES module build and share the application's copy of pixi.js; deep imports continue to work.

    7.0.1release notes

  • The UMD build uses the PIXI global.

    7.0.0release notes

  • A pixi object inside the viewport can stop propagation of its wheel event to prevent viewport zooming.

    7.0.0release notes

Tooling 1

  • Type declarations use .js import extensions, which works with moduleResolution NodeNext.

    7.0.0release notes

Fixes and other changes 14

  • Dragging a viewport with no parent, such as one passed straight to renderer.render(viewport), no longer drifts away from the pointer.

    7.0.2release notes

  • Pinching a viewport with no parent no longer runs away to an enormous scale.

    7.0.2release notes

  • Wheel zoom on a viewport with no parent now stays around the pointer.

    7.0.2release notes

  • Clamping now stops deceleration at the edge and re-clamps when only the screen size changes.

    7.0.0release notes

  • Decelerate removes its event listeners when removed.

    7.0.0release notes

  • The screen field reports the pointer's screen position.

    7.0.0release notes

  • The screen field reports the pointer's screen position.

    7.0.0release notes

  • Following works with nested targets, acceleration no longer exceeds speed, and following a destroyed target stops instead of throwing repeatedly.

    7.0.0release notes

  • The mouse-edge-end event is emitted, including when the plugin is paused or removed while scrolling.

    7.0.0release notes

  • Negative scale no longer breaks input.

    7.0.0release notes

  • Using time 0 no longer throws.

    7.0.0release notes

  • Touches left without a pointerup are cleared when a new gesture starts.

    7.0.0release notes

  • Wheel removes its event listeners when removed.

    7.0.0release notes

  • With wheelZoom false, an unused plain wheel event no longer blocks page scrolling when passiveWheel is false.

    7.0.0release notes