mirror of
https://github.com/thelounge/thelounge
synced 2024-11-26 22:10:22 +00:00
Reduce throttle delay
This commit is contained in:
parent
d00c70f804
commit
2303a02839
1 changed files with 2 additions and 2 deletions
|
@ -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});
|
||||
|
|
Loading…
Reference in a new issue