Jump to Top on New *only* in non-profiles
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
This commit is contained in:
commit
97b8231475
1 changed files with 13 additions and 0 deletions
|
@ -150,6 +150,19 @@ const Timeline = {
|
|||
this.$store.commit('showNewStatuses', { timeline: this.timelineName })
|
||||
this.paused = false
|
||||
}
|
||||
switch (this.timelineName) {
|
||||
default:
|
||||
window.scrollTo({ top: 0 })
|
||||
break
|
||||
case 'user':
|
||||
break
|
||||
case 'replies':
|
||||
break
|
||||
case 'media':
|
||||
break
|
||||
case 'favorites':
|
||||
break
|
||||
}
|
||||
},
|
||||
fetchOlderStatuses: throttle(function () {
|
||||
const store = this.$store
|
||||
|
|
Loading…
Reference in a new issue