Skip to content

Commit a2900b9

Browse files
committed
fix(Timeline): Scroll to top of app content on route change
Before it was done on windows, which was a leftover from the change we did some years ago where we changed the app container from window to a div. Signed-off-by: Louis Chmn <louis@chmn.me>
1 parent f7650ce commit a2900b9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/views/TimelineView.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ export default {
229229
],
230230
231231
beforeRouteLeave(to, from, next) {
232-
window.scrollTo(0, 0)
232+
this.appContent?.scrollTo(0, 0)
233233
next()
234234
Object.keys(this.selectedFilters).forEach((key) => {
235235
this.selectedFilters[key] = []

0 commit comments

Comments
 (0)