From 4b8c811429b2cac18928a148690225e1867a74e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Wed, 14 Oct 2020 17:42:29 +0200 Subject: [PATCH] Use smooth scrolling to the center MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- src/components/cards/CardItem.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/cards/CardItem.vue b/src/components/cards/CardItem.vue index f2aaabacc..c88e25841 100644 --- a/src/components/cards/CardItem.vue +++ b/src/components/cards/CardItem.vue @@ -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' })) } }, },