Improve scroll performance
This commit is contained in:
parent
8678e30cc8
commit
999ce8e366
5 changed files with 5 additions and 5 deletions
|
|
@ -37,7 +37,7 @@ export default Vue.extend({
|
|||
mounted() {
|
||||
if (this.user.bannerUrl) {
|
||||
window.addEventListener('load', this.onScroll);
|
||||
window.addEventListener('scroll', this.onScroll);
|
||||
window.addEventListener('scroll', this.onScroll, { passive: true });
|
||||
window.addEventListener('resize', this.onScroll);
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue