Skip to content

Commit a5fc49c

Browse files
committed
fix(android): override N gesture working with button
1 parent 6abbcc3 commit a5fc49c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/gesturehandler.android.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ import {
2121
HandlerType,
2222
ManagerBase,
2323
OptionsTypeMap,
24+
ROOT_GESTURE_HANDLER_TAG,
2425
TypeMap,
2526
ViewDisposeEvent,
2627
ViewInitEvent,
2728
applyMixins,
2829
install as installBase,
2930
nativeProperty,
30-
ROOT_GESTURE_HANDLER_TAG,
3131
} from './gesturehandler.common';
3232
import { observe as gestureObserve } from './gestures_override';
3333

@@ -70,7 +70,7 @@ export function install(overrideNGestures = false) {
7070
const NSView = require('@nativescript/core/ui/core/view').View;
7171
const NSButtonBase = require('@nativescript/core/ui/button').ButtonBase;
7272
const NSButton = require('@nativescript/core/ui/button').Button;
73-
delete NSButtonBase.tapEvent;
73+
delete NSButton.tapEvent;
7474
// we need to disable on click listener
7575
NSButton.prototype.initNativeView = function () {
7676
NSButtonBase.prototype.initNativeView.call(this);

0 commit comments

Comments
 (0)