mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
feat(refresher): Improve refresher animation. Allow pulling icon rotation to be disabled.
This commit is contained in:
4
js/angular/controller/scrollController.js
vendored
4
js/angular/controller/scrollController.js
vendored
@@ -224,6 +224,7 @@ function($scope, scrollViewOptions, $timeout, $window, $$scrollValueCache, $loca
|
||||
$timeout(function(){
|
||||
refresher.classList.remove('active');
|
||||
refresher.classList.remove('refreshing');
|
||||
refresher.classList.remove('refreshing-tail');
|
||||
refresher.classList.add('invisible');
|
||||
},300);
|
||||
}, function() {
|
||||
@@ -236,6 +237,9 @@ function($scope, scrollViewOptions, $timeout, $window, $$scrollValueCache, $loca
|
||||
},function(){
|
||||
// hideCallback
|
||||
refresher.classList.add('invisible');
|
||||
},function(){
|
||||
// tailCallback
|
||||
refresher.classList.add('refreshing-tail');
|
||||
});
|
||||
};
|
||||
}]);
|
||||
|
||||
Reference in New Issue
Block a user