Skip to content

fix(web): prevent stale live video snapshot on distant timeline hover (#2936) - #2937

Open
ghazy2001 wants to merge 1 commit into
CapSoftware:mainfrom
ghazy2001:fix/timeline-hover-preview-timestamp-mismatch-2936
Open

ghazy2001 wants to merge 1 commit into
CapSoftware:mainfrom
ghazy2001:fix/timeline-hover-preview-timestamp-mismatch-2936

Conversation

@ghazy2001

@ghazy2001 ghazy2001 commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #2936 (Linear CAP-880)

Summary

When hovering over the timeline seek bar on a Cap share page (/s/[videoId]), the hover tooltip popup displays the chapter title and timestamp of the hovered position. However, \generateVideoFrameThumbnail\ previously discarded the hovered timestamp parameter (_time) and snapshot the live HTML5 <video>\ element (\�ideoRef.current).

Because <video>\ only holds decoded pixel data for its active \currentTime\ (the currently playing or paused frame), moving the mouse anywhere across the timeline always captured the active frame. This created a visual contradiction where the tooltip text described one chapter/timestamp (e.g., \11:07), but the thumbnail preview permanently showed the frame from an earlier/different part of the video (e.g., paused at \

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge.

Summary

The player now hides live-frame thumbnails when the hovered time is more than 1.5 seconds from playback.

  • Distant seek-bar hovers show chapter details without a live frame.

Reviews (1) · Last reviewed commit: "fix(web): prevent stale live video snaps..." · Reviewed by Greptile

@vercel

vercel Bot commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
cap-status Skipped Skipped Oct 22, 2026 4:36pm UTC

@vercel
vercel Bot temporarily deployed to Preview – cap-status October 22, 2026 16:36 Inactive

This branch was previously deployed

1 inactive deployment
Preview – cap-status — 6e8fd4b2 Deployed Oct 22, 2026 by vercel[bot]
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.

Timeline seek hover preview always displays current playback frame instead of hovered timestamp

1 participant