aboutsummaryrefslogtreecommitdiff
path: root/src/components/AncestryBar.vue
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/AncestryBar.vue')
-rw-r--r--src/components/AncestryBar.vue18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/components/AncestryBar.vue b/src/components/AncestryBar.vue
index e7ba8a5..fcf9933 100644
--- a/src/components/AncestryBar.vue
+++ b/src/components/AncestryBar.vue
@@ -51,15 +51,6 @@ export default defineComponent({
};
},
},
- watch: {
- // Used to scroll to end of bar upon node/screen changes
- nodes(){
- this.$nextTick(() => this.scrollToEnd());
- },
- vert(){
- this.$nextTick(() => this.scrollToEnd());
- },
- },
methods: {
// Click events
onTileClick(node: LayoutNode){
@@ -83,6 +74,15 @@ export default defineComponent({
}
},
},
+ watch: {
+ // Used to scroll to end of bar upon node/screen changes
+ nodes(){
+ this.$nextTick(() => this.scrollToEnd());
+ },
+ vert(){
+ this.$nextTick(() => this.scrollToEnd());
+ },
+ },
mounted(){
this.scrollToEnd();
},