Skip to content
Snippets Groups Projects
Commit 675426c2 authored by Endrizzi, Marco (UG - Comp Sci & Elec Eng)'s avatar Endrizzi, Marco (UG - Comp Sci & Elec Eng)
Browse files

Better timings for scroll functions

parent 0409103f
No related branches found
No related tags found
No related merge requests found
...@@ -70,7 +70,7 @@ export default { ...@@ -70,7 +70,7 @@ export default {
let pageChat = this.$refs.pageChat.$el let pageChat = this.$refs.pageChat.$el
setTimeout(() => { setTimeout(() => {
window.scrollTo(0, pageChat.scrollHeight) window.scrollTo(0, pageChat.scrollHeight)
}, 20) }, 100)
}, },
...mapActions('firebase', ['firebaseGetMessages', 'firebaseStopGettingMessages', 'firebaseSendMessage']) ...mapActions('firebase', ['firebaseGetMessages', 'firebaseStopGettingMessages', 'firebaseSendMessage'])
...@@ -84,7 +84,7 @@ export default { ...@@ -84,7 +84,7 @@ export default {
this.firebaseGetMessages(this.$route.params.otherUserId) this.firebaseGetMessages(this.$route.params.otherUserId)
setTimeout(() => { setTimeout(() => {
this.scrollToBottom() this.scrollToBottom()
}, 120) }, 150)
}, },
// Fire when the user leaves the page // Fire when the user leaves the page
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment