From eafd13f53ee2bca0f3bb42a73ed2143d249e9160 Mon Sep 17 00:00:00 2001 From: "Manu Mtz.-Almeida" Date: Tue, 29 Nov 2016 12:45:00 +0100 Subject: [PATCH] fix(menu): clicking the backdrop/content closes the menu --- src/components/menu/menu-gestures.ts | 2 +- src/navigation/swipe-back.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/menu/menu-gestures.ts b/src/components/menu/menu-gestures.ts index 3fc496c961e..6687de97bf4 100644 --- a/src/components/menu/menu-gestures.ts +++ b/src/components/menu/menu-gestures.ts @@ -19,7 +19,7 @@ export class MenuContentGesture extends SlideEdgeGesture { super(contentEle, assign({ direction: 'x', edge: menu.side, - threshold: 0, + threshold: 5, maxEdgeStart: menu.maxEdgeStart || 50, zone: false, passive: true, diff --git a/src/navigation/swipe-back.ts b/src/navigation/swipe-back.ts index 60f1afc309e..71f6558c650 100644 --- a/src/navigation/swipe-back.ts +++ b/src/navigation/swipe-back.ts @@ -20,7 +20,7 @@ export class SwipeBackGesture extends SlideEdgeGesture { direction: 'x', maxEdgeStart: 75, zone: false, - threshold: 0, + threshold: 5, debouncer: new NativeRafDebouncer(), gesture: gestureCtlr.createGesture({ name: GESTURE_GO_BACK_SWIPE,