From 8983c7006e54743873cd45ae1acdfa974d74547a Mon Sep 17 00:00:00 2001 From: Liam DeBeasi Date: Wed, 5 Feb 2020 12:17:23 -0500 Subject: [PATCH] fix(refresher): ensure gesture does not interfere with item-sliding (#20380) resolves #20379 --- core/src/components/refresher/refresher.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/components/refresher/refresher.tsx b/core/src/components/refresher/refresher.tsx index 0969d0cd07..301c7ab5f4 100644 --- a/core/src/components/refresher/refresher.tsx +++ b/core/src/components/refresher/refresher.tsx @@ -243,7 +243,7 @@ export class Refresher implements ComponentInterface { gestureName: 'refresher', gesturePriority: 10, direction: 'y', - threshold: 0, + threshold: 5, onStart: () => { this.pointerDown = true; @@ -290,7 +290,7 @@ export class Refresher implements ComponentInterface { gestureName: 'refresher', gesturePriority: 10, direction: 'y', - threshold: 0, + threshold: 5, canStart: () => this.state !== RefresherState.Refreshing && this.state !== RefresherState.Completing && this.scrollEl!.scrollTop === 0, onStart: (ev: GestureDetail) => { ev.data = { animation: undefined, didStart: false, cancelled: false };