From 4eda77216d9758f8f1ac78857d685a5fb9edb894 Mon Sep 17 00:00:00 2001 From: sebastjanartic <45803536-sebastjanartic@users.noreply.replit.com> Date: Mon, 1 Sep 2025 21:54:08 +0000 Subject: [PATCH] Improve touch gesture navigation for video playback Remove console logs related to touch event handling and swipe gestures in various page components (FolxStadlPage, GeschichteLiedPage, GipfelstammtischPage). 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 | 1 - client/src/pages/GeschichteLiedPage.tsx | 5 ----- client/src/pages/GipfelstammtischPage.tsx | 5 ----- 3 files changed, 11 deletions(-) diff --git a/client/src/pages/FolxStadlPage.tsx b/client/src/pages/FolxStadlPage.tsx index ba13822..e231544 100644 --- a/client/src/pages/FolxStadlPage.tsx +++ b/client/src/pages/FolxStadlPage.tsx @@ -53,7 +53,6 @@ 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) => { diff --git a/client/src/pages/GeschichteLiedPage.tsx b/client/src/pages/GeschichteLiedPage.tsx index 72a7d9d..c9a1f66 100644 --- a/client/src/pages/GeschichteLiedPage.tsx +++ b/client/src/pages/GeschichteLiedPage.tsx @@ -55,7 +55,6 @@ 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) => { @@ -70,15 +69,11 @@ export default function GeschichteLiedPage() { const isLeftSwipe = distance > 30; const isRightSwipe = distance < -30; - console.log('Geschichte Swipe:', { distance, isLeftSwipe, isRightSwipe, currentPage, totalPages, videosCount: geschichteVideos.length }); - if (isLeftSwipe && currentPage < totalPages) { setCurrentPage(currentPage + 1); - console.log('Geschichte next page:', currentPage + 1); } if (isRightSwipe && currentPage > 1) { setCurrentPage(currentPage - 1); - console.log('Geschichte prev page:', currentPage - 1); } }; diff --git a/client/src/pages/GipfelstammtischPage.tsx b/client/src/pages/GipfelstammtischPage.tsx index 512fa89..10e7c8e 100644 --- a/client/src/pages/GipfelstammtischPage.tsx +++ b/client/src/pages/GipfelstammtischPage.tsx @@ -55,7 +55,6 @@ 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) => { @@ -70,15 +69,11 @@ export default function GipfelstammtischPage() { const isLeftSwipe = distance > 30; const isRightSwipe = distance < -30; - console.log('Gipfel Swipe:', { distance, isLeftSwipe, isRightSwipe, currentPage, totalPages, videosCount: gipfelVideos.length }); - if (isLeftSwipe && currentPage < totalPages) { setCurrentPage(currentPage + 1); - console.log('Gipfel next page:', currentPage + 1); } if (isRightSwipe && currentPage > 1) { setCurrentPage(currentPage - 1); - console.log('Gipfel prev page:', currentPage - 1); } };