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

Pinching doesn't work with svgs #91

Open
media4learning opened this issue Jun 2, 2021 · 1 comment
Open

Pinching doesn't work with svgs #91

media4learning opened this issue Jun 2, 2021 · 1 comment

Comments

@media4learning
Copy link

I have an issue where I cannot pinch to zoom a svg image on Safari for iOS. Loading a jpeg into the same container allows me to pinch to zoom, but I have tried multiple svg files and none of them can be zoomed using pinch.

If I am zoomed in, pinch to zoom out just instantly returns the svg to a scale of 1.

If I double tap the svg image, it scales up / down as it should.

Pinch to zoom svg "sort of" works on Chrome on Android devices. It's a bit laggy but it does respond to pinching.

Is this expected behaviour or a bug?

@RomanYablonskiEli
Copy link

Try to set display: block; width: 100% for svg element, had the same issue, it helped me

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

2 participants