Use smooth scrolling to the center
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
@@ -134,7 +134,7 @@ export default {
|
|||||||
watch: {
|
watch: {
|
||||||
currentCard(newValue) {
|
currentCard(newValue) {
|
||||||
if (newValue) {
|
if (newValue) {
|
||||||
this.$nextTick(() => this.$el.scrollIntoView())
|
this.$nextTick(() => this.$el.scrollIntoView({ behavior: 'smooth', block: 'center', inline: 'center' }))
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user