mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 15:07:13 +08:00
Refresh and refresh callback on content directive
This commit is contained in:
@ -510,6 +510,7 @@
|
||||
this._refresher.style.display = 'none';
|
||||
} else {
|
||||
this._isRefresherHidden = false;
|
||||
this._didTriggerRefresh = false;
|
||||
this._refresher.style.display = 'block';
|
||||
}
|
||||
|
||||
@ -718,12 +719,14 @@
|
||||
_this._refresher.classList.add('scroll-refreshing');
|
||||
//_this._refresher.style.height = firstChildHeight + 'px';
|
||||
_this._scrollTo(0, _this._refresherHeight, 100, _this.refreshEasing);
|
||||
_this.onRefresh && _this.onRefresh();
|
||||
if(!_this._didTriggerRefresh) {
|
||||
_this.onRefresh && _this.onRefresh();
|
||||
_this._didTriggerRefresh = true;
|
||||
}
|
||||
} else {
|
||||
_this._refresher.classList.add('scroll-refreshing');
|
||||
//_this._refresher.style.height = 0 + 'px';
|
||||
_this._scrollTo(0, 0, _this.refreshEasingTime, _this.refreshEasing);
|
||||
_this.onRefresh && _this.onRefresh();
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user