mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 21:19:41 -06:00
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
Block a user