Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sprite scaling in safari? #1321

Open
fionchadd opened this issue Nov 8, 2024 · 0 comments
Open

sprite scaling in safari? #1321

fionchadd opened this issue Nov 8, 2024 · 0 comments

Comments

@fionchadd
Copy link

fionchadd commented Nov 8, 2024

I'm having a weird issue with a sprite that is scaling strangely in safari.
This is the codepen: https://codepen.io/fionchadd/pen/GRVzRPj
It looks fine in chrome, but in safari (on my mac desktop and my ipad) the sprites are maybe 3x the size.

It seems to happen even if I set the scale value to a static figure rather than calculating it relative to the radius of the body.

My mac desktop has a retina ready screen, as does my ipad. I tried playing around with the pixel ratio but whatever I try, the sprites are larger in safari than in chrome.

Is there anything I can do about this?

Edit to add: I noticed that it's fine if I switch out the SVG for a PNG. So for some reason it seems to not like SVGs but I'm unsure why.

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

No branches or pull requests

1 participant