pixijs-events

Implement PixiJS v8 federated event handling for cross-device user input.

302|15|Updated Apr 1, 2026
One-click install
npx skills add https://github.com/pixijs/pixijs-skills --skill pixijs-events
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pixijs-events
Source: https://github.com/pixijs/pixijs-skills/tree/main/skills/pixijs-events
Command: npx skills add https://github.com/pixijs/pixijs-skills --skill pixijs-events

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

PixiJS's federated event system mirrors DOM events on the scene graph. Set container eventMode to 'static' to opt an object in, then listen with on, addEventListener, or onEventName property handlers. Move events fire only over the listening object; use globalpointermove for drag.

Core Features & Use Cases

  • Global event mode control via eventMode values ('none', 'passive', 'auto', 'static', 'dynamic') to tailor interaction behavior.
  • FederatedEvent types and a rich event payload (FederatedPointerEvent, FederatedWheelEvent) with propagation, capture phase, hitArea overrides, and cursor integration.
  • Practical patterns for dragging, hit-testing, and cursor styling to build responsive UI and interactive scenes.

Quick Start

Set up a PixiJS container with eventMode and attach a pointerdown listener to respond to user interactions.

Frequently Asked Questions about pixijs-events

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I handle pointer events in PixiJS v8?

Handle pointer events in PixiJS v8 by setting a container's eventMode to 'static' to opt it in, then attaching listeners using on, addEventListener, or onEventName property handlers to respond to FederatedPointerEvent payloads.

How does the PixiJS federated event system work?

The PixiJS federated event system mirrors DOM events on the scene graph, supporting propagation, capture phases, and hitArea overrides to deliver rich event payloads like FederatedPointerEvent and FederatedWheelEvent across interactive containers.

What is the best way to implement drag operations in PixiJS?

Implement drag operations in PixiJS by setting eventMode to 'static' on the target object and listening to globalpointermove events, which fire continuously during dragging instead of only when the pointer is directly over the listening object.

When should I use different eventMode values in PixiJS?

Use eventMode values 'none', 'passive', 'auto', 'static', or 'dynamic' in PixiJS to tailor interaction behavior and performance-tune event features, opting objects into hit-testing and propagation only when necessary.

Does PixiJS v8 support custom hit testing and cursor styling?

PixiJS v8 supports custom hit testing and cursor styling through hitArea overrides and cursor integration on containers, sprites, and UI elements to build responsive interactive scenes.

Why does my PixiJS pointer event only fire over the listening object?

PixiJS move events fire only over the listening object by design; to track pointer movement outside the object's bounds during actions like dragging, use the globalpointermove event on the stage or a parent container.