PIXI.js v3 expects canvas to support events#510
PIXI.js v3 expects canvas to support events#510donpark wants to merge 3 commits intophoboslab:masterfrom
Conversation
|
@donpark Is the problem that events are only allowed on document without these changes? |
|
Although I like these changes myself, just wanted to note that you can also change the interactive target element here: Did you try setting the InteractionManager's element to document? |
Problem was that PIXI.js expects
No. This was just a probe to see viability of using Ejecta w/PIXI.js so I just took the first solution that worked. Please do feel free to ignore my PR. It's intended just as a FYI since it's incomplete and, as you pointed out, may not be the optimal solution. :-) |
This pr is like phoboslab#510 , but simple and better , I think .
In particular, PIXI.js v3 makes
addEventListenercalls oncanvaselement.Note that this is a partial fix only to get past runtime errors. Firing canvas element events PIXI.js uses will complete the fix.