Reduce throttle delay

This commit is contained in:
Pavel Djundik 2018-07-16 19:45:27 +03:00 committed by Pavel Djundik
parent d00c70f804
commit 2303a02839

View file

@ -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});