mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
fix(refresher): move gesture target to content
* fix(refresher): move gesture target to content * fix(refresher): attach to closest content
This commit is contained in:
2
core/package-lock.json
generated
2
core/package-lock.json
generated
@ -10999,4 +10999,4 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -94,7 +94,7 @@ export class Refresher {
|
|||||||
*/
|
*/
|
||||||
@Event() ionStart!: EventEmitter<void>;
|
@Event() ionStart!: EventEmitter<void>;
|
||||||
|
|
||||||
constructor() {
|
componentWillLoad() {
|
||||||
this.gestureConfig = {
|
this.gestureConfig = {
|
||||||
'canStart': this.canStart.bind(this),
|
'canStart': this.canStart.bind(this),
|
||||||
'onStart': this.onStart.bind(this),
|
'onStart': this.onStart.bind(this),
|
||||||
@ -106,7 +106,7 @@ export class Refresher {
|
|||||||
'passive': false,
|
'passive': false,
|
||||||
'direction': 'y',
|
'direction': 'y',
|
||||||
'threshold': 0,
|
'threshold': 0,
|
||||||
'attachTo': 'window'
|
'attachTo': this.el.closest('ion-content')
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user