mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(pull to refresh): minor optimization to prevent flicker on deactivate
This commit is contained in:
7
js/angular/controller/scrollController.js
vendored
7
js/angular/controller/scrollController.js
vendored
@@ -221,12 +221,7 @@ function($scope, scrollViewOptions, $timeout, $window, $$scrollValueCache, $loca
|
||||
refresherScope.$onPulling();
|
||||
}, function() {
|
||||
// deactivateCallback
|
||||
$timeout(function(){
|
||||
refresher.classList.remove('active');
|
||||
refresher.classList.remove('refreshing');
|
||||
refresher.classList.remove('refreshing-tail');
|
||||
refresher.classList.add('invisible');
|
||||
},300);
|
||||
refresher.classList.remove('active', 'refreshing', 'refreshing-tail');
|
||||
}, function() {
|
||||
// startCallback
|
||||
refresher.classList.add('refreshing');
|
||||
|
||||
Reference in New Issue
Block a user