Adjust swipe sensitivity for video navigation
Modify swipe detection threshold in VideoPage.tsx from 50px to 20px for more responsive video navigation. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 344ec1e0-1186-4058-bbff-2e9619a7b1e0 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/8cc42625-c1f5-4e43-99bd-77f2c4dedee2/344ec1e0-1186-4058-bbff-2e9619a7b1e0/zJYuV6w
This commit is contained in:
parent
2c1f1a66be
commit
be30dec98a
@ -167,8 +167,8 @@ export default function VideoPage() {
|
||||
if (!touchStart || !touchEnd) return;
|
||||
|
||||
const distance = touchStart - touchEnd;
|
||||
const isLeftSwipe = distance > 50;
|
||||
const isRightSwipe = distance < -50;
|
||||
const isLeftSwipe = distance > 20;
|
||||
const isRightSwipe = distance < -20;
|
||||
|
||||
if (isLeftSwipe) {
|
||||
navigateToVideo('next');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user