MOBILE-3814 swipe: Limit angle on gesture

main
Pau Ferrer Ocaña 2022-03-03 12:43:15 +01:00
parent ae2f087856
commit 0097b78963
1 changed files with 2 additions and 0 deletions

View File

@ -56,7 +56,9 @@ export class CoreSwipeNavigationDirective implements AfterViewInit, OnDestroy {
el: this.element, el: this.element,
gestureName: 'swipe', gestureName: 'swipe',
threshold: 10, threshold: 10,
direction: 'x',
gesturePriority: 10, gesturePriority: 10,
maxAngle: 20,
canStart: () => this.enabled, canStart: () => this.enabled,
onStart: () => { onStart: () => {
style.transition = ''; style.transition = '';