mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-09 16:16:41 +08:00
fix(sliding): fix core gesture logic + priority configuration
fixes #14763
This commit is contained in:
@ -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'),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user