shake animation when trying to nav out from root
Hunter
Tuesday, June 17th, 2025 at 7:51 AM
930 }
931
932 function navigateToParentTask() {
- if (taskPath.length > 1) {
933 + // Check if the current active parent task is the root
934 + if (currentTask.id === 'root') {
935 + // We're at root level - cannot navigate out, apply shake animation to active task
936 + const activeTaskElement = document.querySelector('.task-container.active');
937 + if (activeTaskElement) {
938 + const taskId = activeTaskElement.dataset.id;
939 + applyShakeAnimation(taskId);
940 + }
941 + } else if (taskPath.length > 1) {
942 + // Normal navigation out - we're deeper than root level
943 // Temporarily disable smooth scrolling
944 document.documentElement.style.scrollBehavior = 'auto';
945