diff --git a/client/src/pages/VideoPage.tsx b/client/src/pages/VideoPage.tsx index 36faa02..ecf3211 100644 --- a/client/src/pages/VideoPage.tsx +++ b/client/src/pages/VideoPage.tsx @@ -200,6 +200,7 @@ export default function VideoPage() { const handleTouchStart = (e: React.TouchEvent) => { setTouchEnd(0); setTouchStart(e.targetTouches[0].clientX); + console.log('VideoPage touch start - currentVideo:', currentVideo?.title, 'allVideos count:', allVideos.length); }; const handleTouchMove = (e: React.TouchEvent) => { @@ -212,11 +213,15 @@ export default function VideoPage() { const distance = touchStart - touchEnd; const isLeftSwipe = distance > 20; const isRightSwipe = distance < -20; + + console.log('VideoPage swipe:', { distance, isLeftSwipe, isRightSwipe, allVideosCount: allVideos.length }); if (isLeftSwipe) { + console.log('Navigating to next video'); navigateToVideo('next'); } if (isRightSwipe) { + console.log('Navigating to prev video'); navigateToVideo('prev'); } };