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', gestureName: 'refresher',
gesturePriority: 10, gesturePriority: 10,
direction: 'y', direction: 'y',
threshold: 0, threshold: 5,
onStart: () => { onStart: () => {
this.pointerDown = true; this.pointerDown = true;
@ -290,7 +290,7 @@ export class Refresher implements ComponentInterface {
gestureName: 'refresher', gestureName: 'refresher',
gesturePriority: 10, gesturePriority: 10,
direction: 'y', direction: 'y',
threshold: 0, threshold: 5,
canStart: () => this.state !== RefresherState.Refreshing && this.state !== RefresherState.Completing && this.scrollEl!.scrollTop === 0, canStart: () => this.state !== RefresherState.Refreshing && this.state !== RefresherState.Completing && this.scrollEl!.scrollTop === 0,
onStart: (ev: GestureDetail) => { onStart: (ev: GestureDetail) => {
ev.data = { animation: undefined, didStart: false, cancelled: false }; ev.data = { animation: undefined, didStart: false, cancelled: false };