feat(refresher): Improve refresher animation. Allow pulling icon rotation to be disabled.

This commit is contained in:
Perry Govier
2014-09-16 16:22:02 -05:00
parent 487e7a9796
commit db27fb116c
7 changed files with 111 additions and 33 deletions

View File

@@ -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');
});
};
}]);