mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Merge pull request #1083 from NativeScript/ontouchevent
Fixed #1082: Null reference exception in view.android.setOnTouchListe…
This commit is contained in:
@@ -139,6 +139,10 @@ export class View extends viewCommon.View {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!owner._nativeView || !owner._nativeView.onTouchEvent) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
return owner._nativeView.onTouchEvent(motionEvent);
|
return owner._nativeView.onTouchEvent(motionEvent);
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
|
|||||||
Reference in New Issue
Block a user