pixijs-events

Handle per-object pointer, mouse, touch, and wheel events in PixiJS v8.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

PixiJS's federated event system lets you model DOM-like input events on a scene graph, enabling per-object interaction without polluting global state.

Core Features & Use Cases

  • Supports eventMode values (none, passive, auto, static, dynamic) to control what objects listen to input.
  • Provides FederatedPointerEvent, FederatedMouseEvent, and FederatedWheelEvent data for rich input handling, including global move events for drag interactions.
  • Ideal for building interactive UI elements, drag-and-drop targets, and game controls within PixiJS scenes.

Quick Start

Use the PixiJS federated event system to handle pointer, mouse, touch, or wheel input with eventMode and global events for drag.

Frequently Asked Questions about pixijs-events

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

FAQPage Schema
How do I handle per-object pointer and mouse events in PixiJS?

Handle per-object pointer events in PixiJS by using the federated event system, which mirrors DOM input events directly on the scene graph. This allows individual interactive objects to capture mouse and touch inputs without polluting global state.

How does the PixiJS federated event system work for scene graph interactions?

The PixiJS federated event system models DOM-like input events on the scene graph, enabling per-object interaction. It uses eventMode values to control what objects listen to input and provides FederatedPointerEvent data for rich hit testing.

How do I implement drag and drop in PixiJS?

Implement drag and drop in PixiJS by setting an object's eventMode to static or dynamic and tracking global move events. The federated event system exposes global pointer coordinates necessary for tracking drag interactions across the canvas.

Does PixiJS support touch and wheel events for interactive UI elements?

PixiJS supports touch and wheel events for interactive UI elements through FederatedWheelEvent and FederatedPointerEvent data. These events provide rich input handling for game sprites and containers within PixiJS v8 scenes.

What is the difference between static and dynamic eventMode in PixiJS?

In PixiJS, eventMode values like static and dynamic control what objects listen to input. Static eventMode suits standard interactive UI elements, while dynamic eventMode handles objects requiring frequent hit testing updates during interactions.

Why are my PixiJS pointer events not triggering on overlapping containers?

PixiJS pointer events may not trigger on overlapping containers if eventMode is not properly configured or hit testing is skipped. Ensure the target container has an appropriate eventMode and a defined hitArea to capture the input.