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
This commit is contained in:
parent
ef2f7180bd
commit
4eda77216d
@ -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) => {
|
||||
|
||||
@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user