commit fd7d5e1bedb779ae0d054e6661f11d1dd69feeee parent c01623324a31d9475b5280375fbcc3928886ed28 Author: Hunter Date: Tue, 17 Jun 2025 07:51:32 -0400 shake animation when trying to nav out from root Diffstat:
| M | index.html | | | 11 | ++++++++++- |
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/index.html b/index.html @@ -930,7 +930,16 @@ } function navigateToParentTask() { - if (taskPath.length > 1) { + // Check if the current active parent task is the root + if (currentTask.id === 'root') { + // We're at root level - cannot navigate out, apply shake animation to active task + const activeTaskElement = document.querySelector('.task-container.active'); + if (activeTaskElement) { + const taskId = activeTaskElement.dataset.id; + applyShakeAnimation(taskId); + } + } else if (taskPath.length > 1) { + // Normal navigation out - we're deeper than root level // Temporarily disable smooth scrolling document.documentElement.style.scrollBehavior = 'auto';