Jump to content

overcoming different behavior mousedown vs mousemove


shaneburk89
 Share

Recommended Posts

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?

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...