Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 653 Bytes

File metadata and controls

37 lines (24 loc) · 653 Bytes

Overview

Adds two additional touch events and ensures equivalent pointer events are fired for touches:

  • touchover
  • touchout
  • pointerover
  • pointerout

Based on comment by @alanthai.

Installation

Requires pixi.js as a peer dependency

  1. npm i -S pixi.js
  2. npm i -S pixi-extra-events

Usage

Pass in your own pixi object.

const PIXI = require( 'pixi.js' );
const extraEvents = require( 'pixi-extra-events' );
extraEvents( PIXI );

Or automatically monkey-patch:

require( 'pixi-extra-events' )();

Tests

TODO