test(refresher): fix refresher unit tests

This commit is contained in:
Adam Bradley
2016-02-29 13:27:44 -06:00
parent 4e3604e3ed
commit d39f21f410
2 changed files with 13 additions and 3 deletions

View File

@ -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;
}