From 0097b78963ef72649247c7c6bff308fbe76d1510 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Thu, 3 Mar 2022 12:43:15 +0100 Subject: [PATCH] MOBILE-3814 swipe: Limit angle on gesture --- src/core/directives/swipe-navigation.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/directives/swipe-navigation.ts b/src/core/directives/swipe-navigation.ts index 0a7bec5bb..b1b632284 100644 --- a/src/core/directives/swipe-navigation.ts +++ b/src/core/directives/swipe-navigation.ts @@ -56,7 +56,9 @@ export class CoreSwipeNavigationDirective implements AfterViewInit, OnDestroy { el: this.element, gestureName: 'swipe', threshold: 10, + direction: 'x', gesturePriority: 10, + maxAngle: 20, canStart: () => this.enabled, onStart: () => { style.transition = '';