@@ -151,38 +151,58 @@ - (void)setContentMode:(UIViewContentMode)contentMode
151151#pragma mark - Event Handling + UIResponder Overrides
152152- (void )touchesBegan : (NSSet *)touches withEvent : (UIEvent *)event
153153{
154- if (_node.methodOverrides & ASDisplayNodeMethodOverrideTouchesBegan) {
155- [_node touchesBegan: touches withEvent: event];
156- } else {
157- [super touchesBegan: touches withEvent: event];
158- }
154+ if (_node.methodOverrides & ASDisplayNodeMethodOverrideTouchesBegan) {
155+ [_node touchesBegan: touches withEvent: event];
156+ } else {
157+ [super touchesBegan: touches withEvent: event];
158+ }
159159}
160160
161161- (void )touchesMoved : (NSSet *)touches withEvent : (UIEvent *)event
162162{
163- if (_node.methodOverrides & ASDisplayNodeMethodOverrideTouchesMoved) {
164- [_node touchesMoved: touches withEvent: event];
165- } else {
166- [super touchesMoved: touches withEvent: event];
167- }
163+ if (_node.methodOverrides & ASDisplayNodeMethodOverrideTouchesMoved) {
164+ [_node touchesMoved: touches withEvent: event];
165+ } else {
166+ [super touchesMoved: touches withEvent: event];
167+ }
168168}
169169
170170- (void )touchesEnded : (NSSet *)touches withEvent : (UIEvent *)event
171171{
172- if (_node.methodOverrides & ASDisplayNodeMethodOverrideTouchesEnded) {
173- [_node touchesEnded: touches withEvent: event];
174- } else {
175- [super touchesEnded: touches withEvent: event];
176- }
172+ if (_node.methodOverrides & ASDisplayNodeMethodOverrideTouchesEnded) {
173+ [_node touchesEnded: touches withEvent: event];
174+ } else {
175+ [super touchesEnded: touches withEvent: event];
176+ }
177177}
178178
179179- (void )touchesCancelled : (NSSet *)touches withEvent : (UIEvent *)event
180180{
181- if (_node.methodOverrides & ASDisplayNodeMethodOverrideTouchesCancelled) {
182- [_node touchesCancelled: touches withEvent: event];
183- } else {
184- [super touchesCancelled: touches withEvent: event];
185- }
181+ if (_node.methodOverrides & ASDisplayNodeMethodOverrideTouchesCancelled) {
182+ [_node touchesCancelled: touches withEvent: event];
183+ } else {
184+ [super touchesCancelled: touches withEvent: event];
185+ }
186+ }
187+
188+ - (void )__forwardTouchesBegan : (NSSet *)touches withEvent : (UIEvent *)event
189+ {
190+ [super touchesBegan: touches withEvent: event];
191+ }
192+
193+ - (void )__forwardTouchesMoved : (NSSet *)touches withEvent : (UIEvent *)event
194+ {
195+ [super touchesMoved: touches withEvent: event];
196+ }
197+
198+ - (void )__forwardTouchesEnded : (NSSet *)touches withEvent : (UIEvent *)event
199+ {
200+ [super touchesEnded: touches withEvent: event];
201+ }
202+
203+ - (void )__forwardTouchesCancelled : (NSSet *)touches withEvent : (UIEvent *)event
204+ {
205+ [super touchesCancelled: touches withEvent: event];
186206}
187207
188208- (UIView *)hitTest : (CGPoint)point withEvent : (UIEvent *)event
0 commit comments