Here is the problem: I'm working with cocos2D and CCLayers, and I use a UIView to catch movements with a Gesture recognizer for a UIScrollMenu. On my layer, there are animated sprites that run an animation forever; when I drag the scrollMenu with the finger and I stop my finger held down, the CCLayer in background is not updated anymore, and the sprites does not move. As soon as I move the finger again, the sprites are updated. The problem should not come from the sprites, because when I stop and move again, the sprite does not play its next frame, but the frame that should have been displayed if it had continued to move normally. I think that the frames are still calculated, but the layer does not update its view anymore.
Would anyone have an idea to avoid that?
I don't do anything in order to update the CCSprites, I just launch on them a CCRepeatForever action, then I let their parent CCLayer care about them. I have tried to schedule this CCLayer, but the update function is not called anymore as soon as I am dragging an item with my finger...
`CCAction *hitAction = [CCRepeatForever actionWithAction:[CCAnimate actionWithAnimation:hitAnim restoreOriginalFrame:NO]];
[sprite runAction:hitAction];`
The function which is called when I move my finger again (and apparently allows the CCLayer to update) is - (void)scrollViewDidScroll:(UIScrollView *)scrollView