File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -178,6 +178,13 @@ export class GesturesObserver {
178178 private _attach ( target : View , type : GestureTypes ) {
179179 if ( type & GestureTypes . touch ) {
180180 this . _notifyTouch = true ;
181+ if ( __IOS__ ) {
182+ // let s not reimplement it for touch
183+ const nObserver = new NGesturesObserver ( target , this . callback , this . context ) ;
184+ nObserver . observe ( type ) ;
185+ this . nObserver = nObserver ;
186+ }
187+ return ;
181188 }
182189 const manager = Manager . getInstance ( ) ;
183190 // if (!target._gestureHandlers) {
@@ -238,12 +245,6 @@ export class GesturesObserver {
238245 gestureHandler . on ( GestureHandlerTouchEvent , this . onGestureTouchChange ( GestureTypes . rotation ) , this ) ;
239246 }
240247 }
241- if ( type & GestureTypes . touch && global . isIOS ) {
242- // let s not reimplement it for touch
243- const nObserver = new NGesturesObserver ( target , this . callback , this . context ) ;
244- nObserver . observe ( type ) ;
245- this . nObserver = nObserver ;
246- }
247248 gestureHandler . attachToView ( target ) ;
248249 this . gestureHandler = gestureHandler ;
249250 }
You can’t perform that action at this time.
0 commit comments