mirror of
https://github.com/Troplo/Colubrina.git
synced 2024-11-22 19:27:55 +11:00
Update CommunicationsChat.vue
This commit is contained in:
parent
7954396120
commit
89cee44fda
1 changed files with 6 additions and 2 deletions
|
@ -812,7 +812,7 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
scrollEvent(e) {
|
async scrollEvent(e) {
|
||||||
this.avoidAutoScroll =
|
this.avoidAutoScroll =
|
||||||
e.target.scrollTop + e.target.offsetHeight !== e.target.scrollHeight
|
e.target.scrollTop + e.target.offsetHeight !== e.target.scrollHeight
|
||||||
if (
|
if (
|
||||||
|
@ -824,7 +824,11 @@ export default {
|
||||||
this.rateLimit = true
|
this.rateLimit = true
|
||||||
this.offset += 50
|
this.offset += 50
|
||||||
this.loadingMessages = true
|
this.loadingMessages = true
|
||||||
this.getMessages()
|
const element = document.getElementById("message-0")
|
||||||
|
await this.getMessages()
|
||||||
|
if (element) {
|
||||||
|
element.scrollIntoView()
|
||||||
|
}
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.rateLimit = false
|
this.rateLimit = false
|
||||||
}, 250)
|
}, 250)
|
||||||
|
|
Loading…
Reference in a new issue