mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 13:32:54 +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({
|
||||
direction: 'x',
|
||||
edge: menu.side,
|
||||
threshold: 0,
|
||||
threshold: 5,
|
||||
maxEdgeStart: menu.maxEdgeStart || 50,
|
||||
zone: false,
|
||||
passive: true,
|
||||
|
@ -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,
|
||||
|
Reference in New Issue
Block a user