Skip to content

fix: add willChange to Spinner canvas for WebKit smoothness - #3628

Merged
imdreamrunner merged 1 commit into
meta:mainfrom
MeGaurav4:fix/spinner-webkit-wobble-3617
Jul 7, 2026
Merged

imdreamrunner merged 1 commit into
meta:mainfrom
MeGaurav4:fix/spinner-webkit-wobble-3617

Conversation

@MeGaurav4

Copy link
Copy Markdown
Contributor

Fixes wobbly Spinner rotation on WebKit (Safari, Tauri WebView).

The canvas element animates via CSS rotate() but was not explicitly promoted to its own compositor layer. Adding willChange: transform ensures WebKit composites it on the GPU, eliminating sub-pixel rendering jitter during rotation.

Closes #3617

Verification

  • Only 1 line changed in packages/core/src/Spinner/Spinner.tsx
  • No behavioral or visual change on Chromium/Firefox
  • Enables GPU compositing on WebKit for smooth rotation

Adds willChange: transform to the canvas style to promote it to
its own GPU compositor layer on WebKit, fixing wobbly rotation
in Safari and Tauri WebViews.
@vercel

vercel Bot commented Jul 6, 2026

Copy link
Copy Markdown

@MeGaurav4 is attempting to deploy a commit to the Meta Open Source Team on Vercel.

A member of the Team first needs to authorize it.

@meta-cla

meta-cla Bot commented Jul 6, 2026

Copy link
Copy Markdown

Hi @MeGaurav4!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at [email protected]. Thanks!

@meta-cla

meta-cla Bot commented Jul 6, 2026

Copy link
Copy Markdown

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jul 6, 2026

@imdreamrunner imdreamrunner 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.

lgtm!

@imdreamrunner
imdreamrunner enabled auto-merge (squash) July 7, 2026 14:12
@imdreamrunner
imdreamrunner merged commit 6e8dc86 into meta:main Jul 7, 2026
13 of 14 checks passed
cixzhang added a commit that referenced this pull request Jul 7, 2026
@github-actions
github-actions Bot deleted the fix/spinner-webkit-wobble-3617 branch August 26, 2026 06:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] spinner is wobbly on WebKit

2 participants