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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user