I'm trying to make a horizontally scrolling level-select menu, with 3 'pages' of menu items.
I have a CCMenu in a CCLayer, and I'm moving the layer left/right with the touch. Once the layer scrolls a short distance (let's say 20px), I want the CCMenu to forget about the touch, so that casual scrolling through the pages doesn't trigger a menu interaction.
What's the right way to accomplish this? Seemed like the easiest thing would be to call
[menu ccTouchCancelled:touch withEvent:event]
directly, but the menu complains that it's out of state once it starts getting subsequent touch events for the supposedly cancelled touch.
Thanks in advance for any help.