diff options
| author | Terry Truong <terry06890@gmail.com> | 2022-06-30 00:45:24 +1000 |
|---|---|---|
| committer | Terry Truong <terry06890@gmail.com> | 2022-06-30 00:45:24 +1000 |
| commit | ecb1dc54f219afcc27e8ee0ada3140bbc83f5ac0 (patch) | |
| tree | 5c67338ce4d919d0484a4ea36d6dc8730fec7eef /src/App.vue | |
| parent | 7701acf50b6f2beeca9c1774cec157533fc4cd72 (diff) | |
Avoid triggering tutorial-advance via click-to-hold on active-root
Diffstat (limited to 'src/App.vue')
| -rw-r--r-- | src/App.vue | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/App.vue b/src/App.vue index 462c390..bbd3824 100644 --- a/src/App.vue +++ b/src/App.vue @@ -226,13 +226,14 @@ export default defineComponent({ if (this.isDisabled('expand')){ return false; } - this.handleActionForTutorial('expand'); - this.setLastFocused(null); - // If clicking child of overflowing active-root + // If clicking child of overflowing active-root, fail if (this.overflownRoot){ layoutNode.failFlag = !layoutNode.failFlag; // Triggers failure animation return false; } + // + this.handleActionForTutorial('expand'); + this.setLastFocused(null); // Function for expanding tile let doExpansion = () => { let lytFnOpts = { @@ -310,13 +311,14 @@ export default defineComponent({ if (this.isDisabled('expandToView')){ return false; } - this.handleActionForTutorial('expandToView'); - this.setLastFocused(null); // Special case for active root if (layoutNode == this.activeRoot){ this.onLeafClick(layoutNode); return true; } + // + this.handleActionForTutorial('expandToView'); + this.setLastFocused(null); // Function for expanding tile let doExpansion = async () => { // Hide ancestors @@ -368,13 +370,14 @@ export default defineComponent({ if (this.isDisabled('expandToView')){ return false; } - this.handleActionForTutorial('expandToView'); - this.setLastFocused(null); // Special case for active root if (layoutNode == this.activeRoot){ console.log('Ignored expand-to-view on active-root node'); return false; } + // + this.handleActionForTutorial('expandToView'); + this.setLastFocused(null); // Hide ancestors LayoutNode.hideUpward(layoutNode, this.layoutMap); if (this.detachedAncestors == null){ // Account for ancestry-bar transition |
