From 639dd23a4954e2b0f26f8c7eeb90df78c970969f Mon Sep 17 00:00:00 2001 From: Gautier Fauchart Date: Sun, 10 Jan 2016 00:08:54 +0000 Subject: [PATCH] make the menu threshold configurable --- ionic/components/menu/menu-gestures.ts | 2 +- ionic/components/menu/menu.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ionic/components/menu/menu-gestures.ts b/ionic/components/menu/menu-gestures.ts index 851fd38274..1989db6f4d 100644 --- a/ionic/components/menu/menu-gestures.ts +++ b/ionic/components/menu/menu-gestures.ts @@ -9,7 +9,7 @@ export class MenuContentGesture extends SlideEdgeGesture { super(targetEl, util.extend({ direction: (menu.side === 'left' || menu.side === 'right') ? 'x' : 'y', edge: menu.side, - threshold: 75 + threshold: menu.threshold || 75 }, options)); this.menu = menu; diff --git a/ionic/components/menu/menu.ts b/ionic/components/menu/menu.ts index fe8837708a..9221853bcc 100644 --- a/ionic/components/menu/menu.ts +++ b/ionic/components/menu/menu.ts @@ -95,7 +95,8 @@ import * as gestures from './menu-gestures'; 'content', 'id', 'side', - 'type' + 'type', + 'threshold' ], defaultInputs: { 'side': 'left',