Skip to content

fix(videos): play overlay no longer blocks the native scrubber#457

Merged
jjackson merged 1 commit into
mainfrom
fix/video-overlay-leaves-controls-clear
May 19, 2026
Merged

fix(videos): play overlay no longer blocks the native scrubber#457
jjackson merged 1 commit into
mainfrom
fix/video-overlay-leaves-controls-clear

Conversation

@jjackson
Copy link
Copy Markdown
Owner

Summary

@jjackson reported: "I can't drag the time slider forward or back successfully, it just resumes playing where it is."

Cause: PR #450 turned the play overlay into a real <button> with absolute inset-0, which covered the entire video including the native controls strip at the bottom. Before first play, a user trying to drag the scrubber clicked the overlay button instead, which called v.play() from the original currentTime (= 0). From the user's perspective the seek did nothing and the video just started over.

Fix

Shrink the overlay to a centered round affordance — same visual, just positioned with top-1/2 left-1/2 -translate-* instead of inset-0. Native scrubber / play / volume / fullscreen along the bottom are always reachable.

Verified

Playwright geometry probe on the chc editor page (player at 768×432):

button: {left: 686, top: 348, width: 68, height: 68}
gap between button bottom and video bottom: 182px (need >40px for native controls)

The 68×68 round button sits in the visual center; the native controls strip ~40px tall along the bottom has 182px of clear space above it.

🤖 Generated with Claude Code

@jjackson reported: "I can't drag the time slider forward or back
successfully, it just resumes playing where it is."

Cause: PR #450 turned the play overlay into a real <button> with
`absolute inset-0`, which covered the entire video including the
native controls strip at the bottom. Before first play, the user
trying to drag the scrubber clicked the overlay button instead, which
called v.play() from the original currentTime (= 0). From the user's
perspective the seek did nothing and the video started over.

Fix: shrink the overlay to a centered round affordance (the same
visual but positioned with `top-1/2 left-1/2 -translate-*` instead of
`inset-0`). Native scrubber / play / volume / fullscreen controls
along the bottom are always reachable.

Verified geometry: with the player at 768×432px, the button is 68×68
centered, leaving 182px of clear space below it — well clear of the
~40px native controls strip.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@jjackson jjackson merged commit 5da7e9b into main May 19, 2026
3 checks passed
@jjackson jjackson deleted the fix/video-overlay-leaves-controls-clear branch May 19, 2026 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant