Touch Accuracy

Hi all,
I have a scene (iPhone game) with a camera that follows my player actor around an environment that is 960x640 (so double wide and double high). In this scene I have another actor that is spinning. When I touch this actor I want it to stop spinning. To do this I have set it up using, when touch is pressed it simply change a boolean called spin to false. This works fine when the camera is not moving but when it is it takes several attempts to get it to stop spinning. Has anyone else found this and/or have a solution?
Many thanks,
LBG
I have a scene (iPhone game) with a camera that follows my player actor around an environment that is 960x640 (so double wide and double high). In this scene I have another actor that is spinning. When I touch this actor I want it to stop spinning. To do this I have set it up using, when touch is pressed it simply change a boolean called spin to false. This works fine when the camera is not moving but when it is it takes several attempts to get it to stop spinning. Has anyone else found this and/or have a solution?
Many thanks,
LBG

Comments
Take a look of this video from TSB :
http://gshelper.com/?p=366
He uses magnitude detection instead of "touch is pressed" , with this method you can determine how big the collision area will be !
BUT ! , because you said your scene is 960x640 , don't forget to add the camera offset (origin) to the equation !
Roy.
LBG