fix scroll to top in article view

This commit is contained in:
2026-06-12 09:19:15 +02:00
parent 177d975b4d
commit ed1241490d
+2
View File
@@ -256,6 +256,7 @@ function nextArticle() {
if (currentIndex.value < feeds.value.length - 1) { if (currentIndex.value < feeds.value.length - 1) {
currentIndex.value += 1 currentIndex.value += 1
markCurrentArticleRead() markCurrentArticleRead()
window.scrollTo(0, 0)
} }
} }
@@ -263,6 +264,7 @@ function prevArticle() {
if (currentIndex.value > 0) { if (currentIndex.value > 0) {
currentIndex.value -= 1 currentIndex.value -= 1
markCurrentArticleRead() markCurrentArticleRead()
window.scrollTo(0, 0)
} }
} }