include scroll event interval fix

This commit is contained in:
Max Lynch
2013-12-06 17:38:42 -06:00
parent f9bbd7bd9f
commit eb8dbeb0fe
4 changed files with 12 additions and 6 deletions

View File

@@ -31,7 +31,8 @@ angular.module('ionic.ui.content', [])
refreshComplete: '=',
scroll: '@',
hasScrollX: '@',
hasScrollY: '@'
hasScrollY: '@',
scrollEventInterval: '@'
},
compile: function(element, attr, transclude) {
return function($scope, $element, $attr) {
@@ -92,7 +93,8 @@ angular.module('ionic.ui.content', [])
// Add timeout to let content render so Scroller.resize grabs the right content height
$timeout(function() {
sv = new ionic.views.Scroll({
el: $element[0]
el: $element[0],
scrollEventInterval: parseInt($scope.scrollEventInterval) || 40
});
// Activate pull-to-refresh