mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-06-12 11:44:05 +02:00
Improve scroll performance
This commit is contained in:
@@ -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);
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user