From 6ebdf86ec19c0871272c39c85102e16f9ffbe931 Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Wed, 19 Jul 2017 11:59:47 +0200 Subject: [PATCH] storing scroll position every 100 ms should be enough --- app/assets/javascripts/discourse/components/emoji-picker.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/components/emoji-picker.js.es6 b/app/assets/javascripts/discourse/components/emoji-picker.js.es6 index 3724370fc20..a64505db17c 100644 --- a/app/assets/javascripts/discourse/components/emoji-picker.js.es6 +++ b/app/assets/javascripts/discourse/components/emoji-picker.js.es6 @@ -257,7 +257,7 @@ export default Ember.Component.extend({ _bindSectionsScroll() { $list.on("scroll", () => { Ember.run.debounce(this, this._checkVisibleSection, 150); - Ember.run.debounce(this, this._storeScrollPosition, 50); + Ember.run.debounce(this, this._storeScrollPosition, 100); }); },