mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-23 05:58:26 +08:00
fix(menu): clicking the backdrop/content closes the menu
This commit is contained in:
@ -19,7 +19,7 @@ export class MenuContentGesture extends SlideEdgeGesture {
|
|||||||
super(contentEle, assign({
|
super(contentEle, assign({
|
||||||
direction: 'x',
|
direction: 'x',
|
||||||
edge: menu.side,
|
edge: menu.side,
|
||||||
threshold: 0,
|
threshold: 5,
|
||||||
maxEdgeStart: menu.maxEdgeStart || 50,
|
maxEdgeStart: menu.maxEdgeStart || 50,
|
||||||
zone: false,
|
zone: false,
|
||||||
passive: true,
|
passive: true,
|
||||||
|
@ -20,7 +20,7 @@ export class SwipeBackGesture extends SlideEdgeGesture {
|
|||||||
direction: 'x',
|
direction: 'x',
|
||||||
maxEdgeStart: 75,
|
maxEdgeStart: 75,
|
||||||
zone: false,
|
zone: false,
|
||||||
threshold: 0,
|
threshold: 5,
|
||||||
debouncer: new NativeRafDebouncer(),
|
debouncer: new NativeRafDebouncer(),
|
||||||
gesture: gestureCtlr.createGesture({
|
gesture: gestureCtlr.createGesture({
|
||||||
name: GESTURE_GO_BACK_SWIPE,
|
name: GESTURE_GO_BACK_SWIPE,
|
||||||
|
Reference in New Issue
Block a user