feat(scrollView): better deceleration for scroll view on iOS

This commit is contained in:
Max Lynch
2014-05-22 17:53:24 -05:00
parent e9f7592310
commit 9c77089a5e
2 changed files with 14 additions and 4 deletions

View File

@@ -39,7 +39,15 @@ function($scope, scrollViewOptions, $timeout, $window, $$scrollValueCache, $loca
if (!angular.isDefined(scrollViewOptions.bouncing)) {
ionic.Platform.ready(function() {
scrollView.options.bouncing = !ionic.Platform.isAndroid();
scrollView.options.bouncing = true;
if(ionic.Platform.isAndroid()) {
// No bouncing by default on Android
scrollView.options.bouncing = false;
// Faster scroll decel
scrollView.options.deceleration = 0.95;
} else {
}
});
}