Skip to content

Commit fa79215

Browse files
committed
fix(android): touch override not working
1 parent cbfcf0c commit fa79215

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/gesturehandler/gestures_override.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)