From 914b1d76b2813799ee1f1a002483e9e5099a4892 Mon Sep 17 00:00:00 2001 From: mARTin Date: Sun, 15 Mar 2026 09:53:54 +0100 Subject: [PATCH] fix: prevent swipe navigation when scrolling someday area Ignore horizontal swipe gestures that originate inside the .weekly-someday element so that horizontal scrolling of someday lists works without triggering day navigation on mobile. v1.35.1 Co-Authored-By: Claude Opus 4.6 --- package.json | 2 +- src/components/WeeklyView.tsx | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index d86e18d..27ea0d1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "my-weekly-todo-list", - "version": "1.35.0", + "version": "1.35.1", "description": "A web-based weekly task management application that organizes to-dos and calendar events in a single, intuitive weekly view", "main": "index.js", "scripts": { diff --git a/src/components/WeeklyView.tsx b/src/components/WeeklyView.tsx index 2b2424d..612fbba 100644 --- a/src/components/WeeklyView.tsx +++ b/src/components/WeeklyView.tsx @@ -3518,12 +3518,17 @@ export default function WeeklyView() { let touchEndX = 0; let touchEndY = 0; + let touchStartedInSomeday = false; + const handleTouchStart = (e: TouchEvent) => { touchStartX = e.changedTouches[0].screenX; touchStartY = e.changedTouches[0].screenY; + // Check if touch started inside the someday area (which has its own horizontal scroll) + touchStartedInSomeday = !!(e.target as HTMLElement)?.closest?.('.weekly-someday'); }; const handleTouchEnd = (e: TouchEvent) => { + if (touchStartedInSomeday) return; // Don't hijack someday horizontal scrolling touchEndX = e.changedTouches[0].screenX; touchEndY = e.changedTouches[0].screenY; const diffX = touchEndX - touchStartX;