fix scroll to top in article view
This commit is contained in:
@@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user