Use smooth scrolling to the center

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2020-10-14 17:42:29 +02:00
parent 8ae580fd57
commit 4b8c811429

View File

@@ -134,7 +134,7 @@ export default {
watch: {
currentCard(newValue) {
if (newValue) {
this.$nextTick(() => this.$el.scrollIntoView())
this.$nextTick(() => this.$el.scrollIntoView({ behavior: 'smooth', block: 'center', inline: 'center' }))
}
},
},