mirror of
https://github.com/discourse/discourse.git
synced 2025-02-16 16:24:55 +00: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) {
|
if (opts.debounce) {
|
||||||
onScrollMethod = Discourse.debounce(function() {
|
onScrollMethod = Discourse.debounce(function() {
|
||||||
return scrollingMixin.scrolled();
|
return scrollingMixin.scrolled();
|
||||||
}, 100);
|
}, opts.debounce);
|
||||||
} else {
|
} else {
|
||||||
onScrollMethod = function() {
|
onScrollMethod = function() {
|
||||||
return scrollingMixin.scrolled();
|
return scrollingMixin.scrolled();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user