Only forward touch events if CCResponder has user interaction enabled#882
Only forward touch events if CCResponder has user interaction enabled#882Ben-G wants to merge 1 commit intococos2d:developfrom
Conversation
|
I think, that if the user disables touch handling while a touch is ongoing, there are two options
On 11 Jul 2014, at 06:40, Benjamin Encz notifications@github.com wrote:
|
|
Yes I was thinking about cancelling the touch as well. I would be fine with solution 2). Any other opinions on option 1) vs option 2)? |
With the current implementation touch events caused by an active touch will be forwarded to a
CCRespondereven if the responder setsuserInteractionEnabledtoNO.Can be reproduced with the following sequence:
userInteractionEnabledtoNOWith the current implementation
touchMovedwould be called in the above example.With the suggested change a touch event will only be forwarded if a node has
userInteractionEnabledset toYES.