Quantcast
Channel: Bugs Latest Topics
Viewing all articles
Browse latest Browse all 760

Sprites pick and pickup fired twice

$
0
0

I've noticed that when using an action manager with sprites, both the OnPick and OnPickUp triggers are fired twice.

This can be seen in the example (here), linked to from the documentation (here).

Looking at the code, this seems to because scene._initClickEvent calls it's callback twice (here and here, cb being defined here). 

This could be solved by checking if clickInfo.ignore is true before doing all the sprite checking, unless there is a good reason this wasn't done in the first place.


Viewing all articles
Browse latest Browse all 760

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>