mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-06 22:29:44 +08:00
Added support to stop refresh
This commit is contained in:
15
dist/js/ionic.js
vendored
15
dist/js/ionic.js
vendored
@ -2055,6 +2055,21 @@ window.ionic = {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// Called by user to tell the scroll view to stop pull to refresh
|
||||||
|
doneRefreshing: function() {
|
||||||
|
var _this = this;
|
||||||
|
|
||||||
|
this._scrollTo(0, 0, this.refreshEasingTime, this.refreshEasing);
|
||||||
|
|
||||||
|
this._isHoldingRefresh = false;
|
||||||
|
|
||||||
|
// Hide the refresher
|
||||||
|
setTimeout(function() {
|
||||||
|
_this._refresher.style.display = 'none';
|
||||||
|
_this._isRefresherHidden = true;
|
||||||
|
}, this.refreshEasingTime);
|
||||||
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Scroll to the given X and Y point, taking
|
* Scroll to the given X and Y point, taking
|
||||||
* the given amount of time, with the given
|
* the given amount of time, with the given
|
||||||
|
|||||||
@ -146,6 +146,21 @@
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// Called by user to tell the scroll view to stop pull to refresh
|
||||||
|
doneRefreshing: function() {
|
||||||
|
var _this = this;
|
||||||
|
|
||||||
|
this._scrollTo(0, 0, this.refreshEasingTime, this.refreshEasing);
|
||||||
|
|
||||||
|
this._isHoldingRefresh = false;
|
||||||
|
|
||||||
|
// Hide the refresher
|
||||||
|
setTimeout(function() {
|
||||||
|
_this._refresher.style.display = 'none';
|
||||||
|
_this._isRefresherHidden = true;
|
||||||
|
}, this.refreshEasingTime);
|
||||||
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Scroll to the given X and Y point, taking
|
* Scroll to the given X and Y point, taking
|
||||||
* the given amount of time, with the given
|
* the given amount of time, with the given
|
||||||
|
|||||||
Reference in New Issue
Block a user