From 2303a028390207c7d84cef43d9529665df24a47f Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Mon, 16 Jul 2018 19:45:27 +0300 Subject: [PATCH] Reduce throttle delay --- client/components/MessageList.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/components/MessageList.vue b/client/components/MessageList.vue index 28bc76b2..e2e3eba0 100644 --- a/client/components/MessageList.vue +++ b/client/components/MessageList.vue @@ -146,8 +146,8 @@ export default { }); }, mounted() { - this.debouncedResize = throttle(this.handleResize, 500); - this.debouncedScroll = throttle(this.handleScroll, 150); + this.debouncedResize = throttle(this.handleResize, 100); + this.debouncedScroll = throttle(this.handleScroll, 100); window.addEventListener("resize", this.debouncedResize, {passive: true}); this.$refs.chat.addEventListener("scroll", this.debouncedScroll, {passive: true});