shaneburk89 Posted January 28, 2015 Share Posted January 28, 2015 When you have two sprites layered on top of each other mousedown will only fire on the top sprite. When using mousemove this will fire on both sprites. If there any way to tell mousemove to stop firing on other class objects once it has fired on one of them? I tried stopPropagation() but I don't think this is the correct use for it as they are children of the same parent and not of each other. I'm thinking I might have to edit the source for pixi.js but am weary to do so as it would prevent me from updating pixi in the future. while typing this I am considering looking into simulating a click on each location I move with the mouse if it's possible with javascript but thinking there must be a better way that I am missing. Any ideas of a workaround? Quote Link to comment Share on other sites More sharing options...
shaneburk89 Posted January 29, 2015 Author Share Posted January 29, 2015 That moment when you realize you are crazy stupid and the issue is not with mousemove but with hitTest returning true regardless of the object being on top. 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.