mirror of
https://github.com/xfgryujk/blivechat.git
synced 2025-03-13 19:30:46 +08:00
Merge branch 'patch-scroll-on-resize' into honest
This commit is contained in:
commit
1252402e5e
@ -65,7 +65,11 @@ export default {
|
||||
this.styleElement.innerText = this.css
|
||||
this.scrollToBottom()
|
||||
},
|
||||
created() {
|
||||
window.addEventListener('resize', this.scrollToBottom)
|
||||
},
|
||||
beforeDestroy() {
|
||||
window.removeEventListener('resize', this.scrollToBottom)
|
||||
document.head.removeChild(this.styleElement)
|
||||
},
|
||||
updated() {
|
||||
|
Loading…
Reference in New Issue
Block a user