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: { watch: {
messages: function () { messages: function () {
this.$nextTick(() => { var options = {
var options = { container: '#chatbox',
container: '#chatbox', easing: 'linear',
cancelable: false duration: 1,
} cancelable: false
this.$scrollTo('#lastMessage', 0, options) }
}) this.$scrollTo('#lastMessage', 5, options)
} }
}, },
computed: { computed: {