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
This commit is contained in:
sebastjanartic 2025-09-01 21:50:38 +00:00
parent f649eee8d2
commit b5c4626340
2 changed files with 8 additions and 0 deletions

View File

@ -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);
}
};

View File

@ -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);
}
};