Track control node touches

Tested with custom `ASTextNode` subclass. No targets added, but tracking events are still received upon touches.

fixes #268
This commit is contained in:
Ryan Nystrom 2015-01-27 15:47:05 -08:00
parent f200f9504a
commit 76b3d1310f

View File

@ -363,7 +363,7 @@ void _ASEnumerateControlEventsIncludedInMaskWithBlock(ASControlNodeEvent mask, v
- (BOOL)_isInterestedInTouches
{
// We're only interested in touches if we're enabled and we've got targets to talk to.
return self.enabled && ([_controlEventDispatchTable count] > 0);
return self.enabled;
}
id<NSCopying> _ASControlNodeEventKeyForControlEvent(ASControlNodeEvent controlEvent)