From a035fa4e6cca657c464b472c0bfd479197cc7f7e Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Sun, 10 Apr 2022 18:44:03 +0300 Subject: [PATCH] fix timeline scroll-to-top --- src/components/timeline/timeline.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/timeline/timeline.js b/src/components/timeline/timeline.js index a3931d3230..4ae7410e04 100644 --- a/src/components/timeline/timeline.js +++ b/src/components/timeline/timeline.js @@ -141,7 +141,7 @@ const Timeline = { this.$store.commit('showNewStatuses', { timeline: this.timelineName }) this.paused = false } - window.scrollTop = 0 + window.scrollTo({ top: 0 }) }, fetchOlderStatuses: throttle(function () { const store = this.$store