fix(refresher): ensure gesture does not interfere with item-sliding (#20380)

resolves #20379
This commit is contained in:
Liam DeBeasi
2020-02-05 12:17:23 -05:00
committed by GitHub
parent 46d43032ec
commit 8983c7006e

View File

@ -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 };