Jump to content

onInputUp doesn't really trigger at input up - How do I do implement my usecase?


Secretmapper
 Share

Recommended Posts

Imagine two sprites, Let's call them A and B

 

A     B

 

and I add an onInputUp to both of them. When I click A, the Ahandler gets called, when I click B, the Bhandler gets called. so far so good.

 

Now imagine this:

 

A     B

 

With my mouse/finger on 'A' I press, then drag to 'B'. I then release at 'B'. Now my intuition is that since my handler is an 'onInputUp', my Bhandler will be called.

 

However, in phaser, it is my 'A' handler that gets called.

 

How do I implement my usecase, so that my event/handler will trigger when my finger/pointer is released on the sprite?

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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