Improve swipe gesture sensitivity for page navigation

Adjust swipe detection thresholds in multiple pages (FolxStadlPage, GeschichteLiedPage, GipfelstammtischPage) from 50 to 30 pixels to enhance responsiveness.

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:51:43 +00:00
parent b5c4626340
commit 591737c07b
3 changed files with 6 additions and 6 deletions

View File

@ -63,8 +63,8 @@ export default function FolxStadlPage() {
if (!touchStart || !touchEnd) return;
const distance = touchStart - touchEnd;
const isLeftSwipe = distance > 50;
const isRightSwipe = distance < -50;
const isLeftSwipe = distance > 30;
const isRightSwipe = distance < -30;
if (isLeftSwipe && currentPage < totalPages) {
setCurrentPage(currentPage + 1);

View File

@ -65,8 +65,8 @@ export default function GeschichteLiedPage() {
if (!touchStart || !touchEnd) return;
const distance = touchStart - touchEnd;
const isLeftSwipe = distance > 50;
const isRightSwipe = distance < -50;
const isLeftSwipe = distance > 30;
const isRightSwipe = distance < -30;
console.log('Geschichte Swipe:', { distance, isLeftSwipe, isRightSwipe, currentPage, totalPages, videosCount: geschichteVideos.length });

View File

@ -65,8 +65,8 @@ export default function GipfelstammtischPage() {
if (!touchStart || !touchEnd) return;
const distance = touchStart - touchEnd;
const isLeftSwipe = distance > 50;
const isRightSwipe = distance < -50;
const isLeftSwipe = distance > 30;
const isRightSwipe = distance < -30;
console.log('Gipfel Swipe:', { distance, isLeftSwipe, isRightSwipe, currentPage, totalPages, videosCount: gipfelVideos.length });