Commit b8bda4ce authored by Phil Hughes's avatar Phil Hughes

scroll active item into view with animation

parent 5d90c706
......@@ -86,7 +86,10 @@ export default {
},
updated() {
if (this.file.type === 'blob' && this.file.active) {
this.$el.scrollIntoView();
this.$el.scrollIntoView({
behavior: 'smooth',
block: 'nearest',
});
}
},
methods: {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment