cocos2d-iphone-extensions
cocos2d-iphone-extensions copied to clipboard
CCLayerPanZoom: crash on line 289
I'm using CCLayerPanZoom for a game scene, and I noticed that if I touch the screen while the scene is transitioning in, it will crash. After digging in into the code, it appears that the crash is caused by an attempt to access an empty array (self.touches) on line 289. This happens because ccTouchesBegan never gets called when the scene is transitioning in.
Oops, my mistake. Here's how to reproduce the crash:
- Instead of just simply running the scene, apply a transition effect (e.g. fade in).
- While the scene is transitioning in, touch the screen.
- After the transition is over, slide your finger.
To which class touches property belongs to? Maybe you can provide a pull request?
Thanks!
27.04.2012, в 11:50, [email protected] написал(а):
I'm using CCLayerPanZoom for a game scene, and I noticed that if I touch the screen while the scene is transitioning in, it will crash. After digging in into the code, it appears that the crash is caused by an attempt to access an empty array (self.touches) on line 289. This happens because ccTouchesBegan never gets called when the scene is transitioning in.
Reply to this email directly or view it on GitHub: https://github.com/cocos2d/cocos2d-iphone-extensions/issues/108