zarstar Posted August 11, 2014 Share Posted August 11, 2014 Hi guys, I have the following problem:I have a DisplayObjectContainer that needs to be dragged around. Of course it contains some Sprites.The problem is that when my dragging operation ends, it invokes the .mouseup() method both on the DisplayObjectContainer and on its children (the Sprites). How can avoid to invoke the .mouseup() method on the children? Quote Link to comment Share on other sites More sharing options...
xerver Posted August 11, 2014 Share Posted August 11, 2014 When I get this merged, event objects will have the original "target" of an event so you can ignore ones caused by the parent. https://github.com/GoodBoyDigital/pixi.js/pull/914 Quote Link to comment Share on other sites More sharing options...
zarstar Posted August 13, 2014 Author Share Posted August 13, 2014 Great Right now I temporary solved the problem setting interactiveMode off to the child sprites and resetting their mouseDown flag. 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.