Jump to Top on New *only* in non-profiles
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful

This commit is contained in:
David 2022-09-02 15:20:41 -07:00
commit 97b8231475

View file

@ -150,6 +150,19 @@ const Timeline = {
this.$store.commit('showNewStatuses', { timeline: this.timelineName }) this.$store.commit('showNewStatuses', { timeline: this.timelineName })
this.paused = false 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 () { fetchOlderStatuses: throttle(function () {
const store = this.$store const store = this.$store