From b5c4626340e2c832383b34deefb612ebcc46a006 Mon Sep 17 00:00:00 2001 From: sebastjanartic <45803536-sebastjanartic@users.noreply.replit.com> Date: Mon, 1 Sep 2025 21:50:38 +0000 Subject: [PATCH] Add logging to enhance swipe gesture debugging for video pages Add console logs to `GeschichteLiedPage.tsx` and `GipfelstammtischPage.tsx` to aid in debugging swipe gestures and page navigation. 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/GeschichteLiedPage.tsx | 4 ++++ client/src/pages/GipfelstammtischPage.tsx | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/client/src/pages/GeschichteLiedPage.tsx b/client/src/pages/GeschichteLiedPage.tsx index 970b088..9ce110c 100644 --- a/client/src/pages/GeschichteLiedPage.tsx +++ b/client/src/pages/GeschichteLiedPage.tsx @@ -68,11 +68,15 @@ export default function GeschichteLiedPage() { const isLeftSwipe = distance > 50; const isRightSwipe = distance < -50; + 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 67cfe32..22d3490 100644 --- a/client/src/pages/GipfelstammtischPage.tsx +++ b/client/src/pages/GipfelstammtischPage.tsx @@ -68,11 +68,15 @@ export default function GipfelstammtischPage() { const isLeftSwipe = distance > 50; const isRightSwipe = distance < -50; + 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); } };