Instant scrolling

This commit is contained in:
Sam 2018-05-25 15:41:47 +10:00
parent 4ee666266e
commit 84004f6230
1 changed files with 7 additions and 7 deletions

View File

@ -100,13 +100,13 @@ export default {
},
watch: {
messages: function () {
this.$nextTick(() => {
var options = {
container: '#chatbox',
cancelable: false
}
this.$scrollTo('#lastMessage', 0, options)
})
var options = {
container: '#chatbox',
easing: 'linear',
duration: 1,
cancelable: false
}
this.$scrollTo('#lastMessage', 5, options)
}
},
computed: {