diff --git a/packages/app-frontend/src/App.vue b/packages/app-frontend/src/App.vue index 9405443761aaef4211b7ed87e28f9a373e43cc21..050b7d0d0d243ba74f6a5966cc8799dd851a57df 100644 --- a/packages/app-frontend/src/App.vue +++ b/packages/app-frontend/src/App.vue @@ -158,7 +158,9 @@ - + + + diff --git a/packages/app-frontend/src/mixins/entry-list.js b/packages/app-frontend/src/mixins/entry-list.js index 7ee789de2682a195147584d47fa1580aaddf22b7..53d3f215db503d3bfd4f067bb16a0d81368d28c9 100644 --- a/packages/app-frontend/src/mixins/entry-list.js +++ b/packages/app-frontend/src/mixins/entry-list.js @@ -12,12 +12,20 @@ export default function ({ }, mounted () { - requestAnimationFrame(() => { - if (this.inspectedIndex) this.scrollIntoInspected(this.inspectedIndex) - }) + this.refreshScrollToInspected() + }, + + activated () { + this.refreshScrollToInspected() }, methods: { + refreshScrollToInspected () { + requestAnimationFrame(() => { + if (this.inspectedIndex) this.scrollIntoInspected(this.inspectedIndex) + }) + }, + scrollIntoInspected: debounce(function (index) { index += indexOffset this.$nextTick(() => {