Skip to content

feat: zoom toward clicks and ring them (#119) - #161

Merged
TMHSDigital merged 1 commit into
mainfrom
feat/zoom-clicks-119
Oct 25, 2026
Merged

TMHSDigital merged 1 commit into
mainfrom
feat/zoom-clicks-119

Conversation

@TMHSDigital

Copy link
Copy Markdown
Owner

Closes #119: the click-driven half, built on the input event log (#158).

zoom

  • follow: "auto" | "clicks" | "changes". Without keyframes, auto (default) follows clicks when the recording's .events.jsonl has in-frame clicks, else screen changes as before.
  • Click planning: the view is reached as each click happens (the ease starts transitionSec earlier, so the camera arrives with the cursor). Clicks less than holdSec apart form one run that pans between them; clicks already well inside the current view don't pan. It zooms out holdSec after the run, and keyframes stay at least one transition apart.
  • highlightClicks draws an expanding, fading ring per click (highlightColor, default #FF4545). Each ring is a small geq colour source shifted to the click time and overlaid before zoompan, so it moves with the zoom.
  • events points at a log explicitly. The tool errors clearly when clicks are asked for but there's no log, and caps rings at 200.

Docs: new recipe REC 06, "Zoom toward every click", with before/after GIFs from a real end-to-end run (record with events: true → one injected click on a demo window's Save button → zoom { highlightClicks: true }). Linked from the home page and workflows index.

Tests

  • Unit: click planning (pans, same-spot skip, runs, hold, spacing, clamping) and ring filter / filter_complex construction.
  • Integration (real ffmpeg, runs on CI): the ring appears at the click and is gone after 0.6 s; a click-planned zoom keeps size and duration.
  • End to end through the built server; frames checked visually. The first ring colour (amber) was nearly invisible on a white window, hence the red default and a thicker ring that stays solid for the first half.

Bumps to 0.29.0.

🤖 Generated with Claude Code

zoom plans keyframes from the input event log's clicks (default when the
log has any): arrive on each click, pan between nearby clicks, zoom out
after the hold. highlightClicks draws an expanding ring at each click,
before the zoom so it moves with it. Docs recipe REC 06 shows a real
before/after.

Closes #119

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Oct 25, 2026
@TMHSDigital
TMHSDigital merged commit 4cbf657 into main Oct 25, 2026
8 checks passed
@TMHSDigital
TMHSDigital deleted the feat/zoom-clicks-119 branch October 25, 2026 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Auto-zoom and cursor emphasis (zoom_to): Screen Studio-style polish for screencasts

1 participant