Use the debounce parameter instead of hard-coding 100
This commit is contained in:
parent
8c882fd392
commit
8ea1a1069e
|
@ -24,7 +24,7 @@ Discourse.Scrolling = Em.Mixin.create({
|
|||
if (opts.debounce) {
|
||||
onScrollMethod = Discourse.debounce(function() {
|
||||
return scrollingMixin.scrolled();
|
||||
}, 100);
|
||||
}, opts.debounce);
|
||||
} else {
|
||||
onScrollMethod = function() {
|
||||
return scrollingMixin.scrolled();
|
||||
|
|
Loading…
Reference in New Issue