We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16941ab commit 1a0d168Copy full SHA for 1a0d168
src/ui-scroll.js
@@ -69,7 +69,7 @@ angular.module('ui.scroll', [])
69
const PADDING_MIN = 0.3;
70
const PADDING_DEFAULT = 0.5;
71
const MAX_VIEWPORT_DELAY = 500;
72
- const VIEWPORT_POLLING_INTERVAL = 75;
+ const VIEWPORT_POLLING_INTERVAL = 50;
73
74
let datasource = null;
75
const itemName = match[1];
@@ -170,6 +170,7 @@ angular.module('ui.scroll', [])
170
reload();
171
}
172
if(tryCount * VIEWPORT_POLLING_INTERVAL >= MAX_VIEWPORT_DELAY) {
173
+ $interval.cancel(timer);
174
throw Error(`ui-scroll directive requires a viewport with non-zero height in ${MAX_VIEWPORT_DELAY}ms`);
175
176
}, VIEWPORT_POLLING_INTERVAL);
0 commit comments