fix(sliding): fix core gesture logic + priority configuration

fixes #14763
This commit is contained in:
Manu Mtz.-Almeida
2018-08-07 17:14:04 +02:00
parent 419ef7b836
commit a77ee2a6f8
18 changed files with 42 additions and 33 deletions

View File

@ -108,7 +108,7 @@ export class Refresher {
gestureName: 'refresher',
gesturePriority: 10,
direction: 'y',
threshold: 5,
threshold: 10,
passive: false,
canStart: this.canStart.bind(this),
onStart: this.onStart.bind(this),
@ -175,6 +175,8 @@ export class Refresher {
}
private onStart() {
console.log('start');
this.progress = 0;
this.state = RefresherState.Inactive;
}
@ -341,6 +343,7 @@ export class Refresher {
hostData() {
return {
slot: 'fixed',
class: {
...createThemedClasses(this.mode, 'refresher'),