From ef2f7180bdc74514265dd21cc195db39301efeab Mon Sep 17 00:00:00 2001 From: sebastjanartic <45803536-sebastjanartic@users.noreply.replit.com> Date: Mon, 1 Sep 2025 21:52:36 +0000 Subject: [PATCH] Improve touch event handling for smoother page navigation Add e.preventDefault() to touchmove event handlers in FolxStadlPage, GeschichteLiedPage, and GipfelstammtischPage to prevent default scrolling behavior during touch interactions. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 890577b1-c154-40a4-a177-a0c6d55320c3 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/8cc42625-c1f5-4e43-99bd-77f2c4dedee2/890577b1-c154-40a4-a177-a0c6d55320c3/DyHCx4q --- client/src/pages/FolxStadlPage.tsx | 2 ++ client/src/pages/GeschichteLiedPage.tsx | 2 ++ client/src/pages/GipfelstammtischPage.tsx | 2 ++ 3 files changed, 6 insertions(+) diff --git a/client/src/pages/FolxStadlPage.tsx b/client/src/pages/FolxStadlPage.tsx index a9895d9..ba13822 100644 --- a/client/src/pages/FolxStadlPage.tsx +++ b/client/src/pages/FolxStadlPage.tsx @@ -53,9 +53,11 @@ export default function FolxStadlPage() { const handleTouchStart = (e: React.TouchEvent) => { setTouchEnd(0); setTouchStart(e.targetTouches[0].clientX); + console.log('Folx touch start:', e.targetTouches[0].clientX); }; const handleTouchMove = (e: React.TouchEvent) => { + e.preventDefault(); setTouchEnd(e.targetTouches[0].clientX); }; diff --git a/client/src/pages/GeschichteLiedPage.tsx b/client/src/pages/GeschichteLiedPage.tsx index 18af750..72a7d9d 100644 --- a/client/src/pages/GeschichteLiedPage.tsx +++ b/client/src/pages/GeschichteLiedPage.tsx @@ -55,9 +55,11 @@ export default function GeschichteLiedPage() { const handleTouchStart = (e: React.TouchEvent) => { setTouchEnd(0); setTouchStart(e.targetTouches[0].clientX); + console.log('Geschichte touch start:', e.targetTouches[0].clientX); }; const handleTouchMove = (e: React.TouchEvent) => { + e.preventDefault(); setTouchEnd(e.targetTouches[0].clientX); }; diff --git a/client/src/pages/GipfelstammtischPage.tsx b/client/src/pages/GipfelstammtischPage.tsx index 814a281..512fa89 100644 --- a/client/src/pages/GipfelstammtischPage.tsx +++ b/client/src/pages/GipfelstammtischPage.tsx @@ -55,9 +55,11 @@ export default function GipfelstammtischPage() { const handleTouchStart = (e: React.TouchEvent) => { setTouchEnd(0); setTouchStart(e.targetTouches[0].clientX); + console.log('Gipfel touch start:', e.targetTouches[0].clientX); }; const handleTouchMove = (e: React.TouchEvent) => { + e.preventDefault(); setTouchEnd(e.targetTouches[0].clientX); };