Skip to content

fix(record): cursor in Edit and in recorded video (v0.7.1) - #17

Merged
imnakul merged 2 commits into
masterfrom
fix/recording-cursor
Nov 27, 2026
Merged

imnakul merged 2 commits into
masterfrom
fix/recording-cursor

Conversation

@imnakul

@imnakul imnakul commented Nov 27, 2026

Copy link
Copy Markdown
Owner

What

  • Fix: Studio (Edit) never loaded any recording's cursor track. loadCursorTrack fetches cursor.json through the asset protocol, but the CSP connect-src only allowed IPC, so the fetch was blocked and every recording showed "This recording has no cursor track". Added asset: http://asset.localhost to connect-src. Existing recordings already have valid tracks, so they get the pointer, smoothing and zoom on click back in Edit and in exports.
  • Feature: "Show cursor" recorder setting, on by default. It burns the hardware pointer into the video (WGC SetIsCursorCaptureEnabled), so the file shows it in any player.
    • Stored as a new key, showCursor, so settings saved under the old off-by-default captureCursor get the new default.
    • Recordings carry cursorInVideo, and Studio starts with its own pointer off for them so it isn't drawn twice. Zoom on click still uses the track.
  • Version 0.7.1.

Verification

  • typecheck, lint, tests (desktop 614), cargo fmt, clippy and test all pass. The browser_link timing test failed once and passed on rerun.
  • Manual check pending:
    • an old recording shows a pointer in Edit;
    • a new recording shows the pointer in a video player;
    • Edit shows only one pointer for a new recording.

…etting

The CSP connect-src blocked fetching cursor.json from the asset protocol,
so Studio treated every recording as having no cursor track. Allow the
asset origin. Add a Show cursor recorder toggle (on by default) that burns
the hardware pointer into the video; Studio starts with its own pointer
off for those recordings.
@vercel

vercel Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
snaphub Ready Ready Preview Nov 27, 2026 2:37pm UTC

@imnakul
imnakul merged commit 775fe1f into master Nov 27, 2026
3 checks passed

This branch was successfully deployed

1 active deployment
Preview — 6fcd8f0b Deployed Nov 27, 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.

1 participant