bulletbrain Posted December 30, 2015 Share Posted December 30, 2015 I have a game world that is essentially a PIXI.Container with a bunch of sprites in it. I want to tap/drag to move the world around, but the problem I seem to have is the width/height of the Container is 0, 0. So I can fire events if a sprite within that Container is tapped/dragged, but not every part of the screen will have a sprite, how do I set the width/height of the Container to listen for events on the entire window? Quote Link to comment Share on other sites More sharing options...
xerver Posted December 31, 2015 Share Posted December 31, 2015 Listen to events on the canvas element, global events are not supported right now. Containers are the size of the bounds created by their children. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.