mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
test(refresher): fix refresher unit tests
This commit is contained in:
@ -302,12 +302,13 @@ export class Refresher {
|
||||
// this refresh is not already actively pulling down
|
||||
|
||||
// get the content's scrollTop
|
||||
let scrollHostScrollTop = this._content.scrollElement.scrollTop;
|
||||
let scrollHostScrollTop = this._content.getContentDimensions().scrollTop;
|
||||
|
||||
// if the scrollTop is greater than zero then it's
|
||||
// not possible to pull the content down yet
|
||||
if (scrollHostScrollTop > 0) {
|
||||
this.progress = 0;
|
||||
this.startY = null;
|
||||
return 7;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user