Improve touch controls for video scaling on mobile devices
Adjust touch overlay positioning on the VideoPage component to prevent interference with bottom video controls, allowing for proper scaling actions on mobile. 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
6c9ee677b2
commit
2c1f1a66be
@ -441,9 +441,9 @@ export default function VideoPage() {
|
||||
</Button>
|
||||
</>
|
||||
)}
|
||||
{/* Touch overlay for mobile swipe detection - positioned on edges only */}
|
||||
{/* Touch overlay for mobile swipe detection - positioned on edges only, avoiding bottom controls */}
|
||||
<div
|
||||
className="absolute left-0 top-0 w-16 h-full z-10 md:hidden"
|
||||
className="absolute left-0 top-0 w-16 h-3/4 z-10 md:hidden"
|
||||
onTouchStart={handleTouchStart}
|
||||
onTouchMove={handleTouchMove}
|
||||
onTouchEnd={handleTouchEnd}
|
||||
@ -453,7 +453,7 @@ export default function VideoPage() {
|
||||
}}
|
||||
/>
|
||||
<div
|
||||
className="absolute right-0 top-0 w-16 h-full z-10 md:hidden"
|
||||
className="absolute right-0 top-0 w-16 h-3/4 z-10 md:hidden"
|
||||
onTouchStart={handleTouchStart}
|
||||
onTouchMove={handleTouchMove}
|
||||
onTouchEnd={handleTouchEnd}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user