Skip to content

docs(studio): say a sealed scale resize takes its base from the gesture stamp - #8545

Closed
miguel-heygen wants to merge 1 commit into
mainfrom
docs/sealed-scale-base-from-stamp
Closed

miguel-heygen wants to merge 1 commit into
mainfrom
docs/sealed-scale-base-from-stamp

Conversation

@miguel-heygen

Copy link
Copy Markdown
Collaborator

What

A comment in the scale resize's drop correction now says that on a sealed preview the box's starting position comes from the position recorded when the gesture began, and that the logged live position reads 0,0 there.

Why

On a sealed preview Studio cannot read the frame's live position, so the fallback reads 0,0 and the starting position comes from the gesture's recorded value alone. That is correct, but the next reader had to trace it to know. A review of #8301 asked for the note; the branch was already in the merge queue, so it comes here.

Related work

Follows #8301.

How

The existing two-line comment above preGesture in hooks/gsapResizeIntercept.ts is reworded to carry it. No code changes.

Test plan

  • Unit tests added/updated
  • Manual testing performed
  • Documentation updated (if applicable)
  • Comments follow CONTRIBUTING.md "Comments": they say why, not what, and a bug fix says what the code must do and how to reproduce the bug

Comment only, so no behaviour changes and no new test. The resize tests (gsapResizeDropPoint, gsapResizeIntercept) and every test covering the file pass, with Studio tsc clean.

@terencecho terencecho left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed at fb51d0e that the only edit is the comment. It matches the sealed resize path: with no live frame read, the position calculation takes its base from the gesture stamp. Review was by inspection.

— tai (automated review)

@github-actions

Copy link
Copy Markdown
Contributor

Edit accuracy: accurate 271 (base branch 271), smooth 62 of those

The gate passes.
Smoothness is reported in the artifact, not gated. A case fails only if it fails 2 of 3 runs.

Quarantined, measured but not gated (0)

@miguel-heygen

Copy link
Copy Markdown
Collaborator Author

Superseded by #8565, which fixed the second sealed scale resize at its root.

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.

2 participants