Skip to content

Fix scaling on sprites - #860

Open
obsgolem wants to merge 1 commit into
mayocream:mainfrom
obsgolem:fix-scaling-on-sprites
Open

Fix scaling on sprites#860
obsgolem wants to merge 1 commit into
mayocream:mainfrom
obsgolem:fix-scaling-on-sprites

Conversation

@obsgolem

@obsgolem obsgolem commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

For some reason, the browser decides to downscale the sprite's bounding box before even applying the transform. This causes the scale and translate values to be incorrect. Fix this by forcing width and height to the correct values.

Correct Render:
image

Preview Before:
image
Preview After:
image

For some reason, the browser decides to downscale the image box before
even applying the transform. This causes the scale and translate values
to be incorrect. Fix this by forcing width and height to the correct
values.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant