Skip to content

Commit cb11edc

Browse files
committed
fix(swipemenu): ios broken after latest gesturehandler release
1 parent 199ee75 commit cb11edc

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
"@nativescript-community/class-mixins": "^1.0.0",
6060
"@nativescript-community/plugin-seed-tools": "file:tools",
6161
"@nativescript-community/template-snippet": "file:demo-snippets",
62-
"@nativescript-community/ui-drawer": "^0.1.13"
62+
"@nativescript-community/ui-drawer": "^0.1.27"
6363
},
6464
"ntl": {
6565
"descriptions": {

src/swipemenu/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,13 @@ export function overrideCollectionView() {
131131
applyMixins(CollectionView, [CollectionViewWithSwipeMenu], { override: true });
132132
}
133133

134+
export let PAN_GESTURE_TAG = 180000;
135+
134136
@CSSType('SwipeMenu')
135137
export class SwipeMenu extends Drawer {
136138
constructor() {
137139
super();
140+
this.gestureTag = PAN_GESTURE_TAG++;
138141
this.gestureHandlerOptions = { activeOffsetXStart: -10, activeOffsetXEnd: 10, failOffsetYStart: -10, failOffsetYEnd: 10, minDist: 15 };
139142
this.leftOpenedDrawerAllowDraging = true;
140143
this.rightOpenedDrawerAllowDraging = true;

0 commit comments

Comments
 (0)