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

4
dist/css/ionic.css vendored
View File

@@ -2210,7 +2210,9 @@ body, .ionic-body {
-webkit-font-smoothing: antialiased;
font-smoothing: antialiased;
-webkit-backface-visibility: hidden;
@incude text-size-adjust(none);
-webkit-text-size-adjust: none;
-moz-text-size-adjust: none;
text-size-adjust: none;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
-webkit-tap-highlight-color: transparent;
-webkit-user-select: none;

View File

@@ -655,7 +655,8 @@ angular.module('ionic.ui.content', [])
refreshComplete: '=',
scroll: '@',
hasScrollX: '@',
hasScrollY: '@'
hasScrollY: '@',
scrollEventInterval: '@'
},
compile: function(element, attr, transclude) {
return function($scope, $element, $attr) {
@@ -716,7 +717,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

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

View File

@@ -22,7 +22,7 @@ body, .ionic-body {
@include font-smoothing(antialiased);
//-webkit-perspective: 1000;
-webkit-backface-visibility: hidden;
@incude text-size-adjust(none);
@include text-size-adjust(none);
@include tap-highlight-transparent();
@include user-select(none);