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 {
let pageChat = this.$refs.pageChat.$el
setTimeout(() => {
window.scrollTo(0, pageChat.scrollHeight)
}, 20)
}, 100)
},
...mapActions('firebase', ['firebaseGetMessages', 'firebaseStopGettingMessages', 'firebaseSendMessage'])
......@@ -84,7 +84,7 @@ export default {
this.firebaseGetMessages(this.$route.params.otherUserId)
setTimeout(() => {
this.scrollToBottom()
}, 120)
}, 150)
},
// 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