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

Zoom performance issues from iOS 16 onwards #266

Closed
pavodev opened this issue Apr 13, 2023 · 3 comments
Closed

Zoom performance issues from iOS 16 onwards #266

pavodev opened this issue Apr 13, 2023 · 3 comments

Comments

@pavodev
Copy link

pavodev commented Apr 13, 2023

Hello,

I'm developing an interactive graph and I noticed that it has really bad performance on iPhones since the iOS 16 update. The lag is a lot more noticeable when the graph is zoomed in and I try to pan the group, did anyone notice any performance issues related to zoom/pan on the latest iOS versions?

You can check out my web app on this https://course-glancer.netlify.app/glancer/square
If you try the same web app on an android phone (i tried it on a Google Pixel 4), you will notice that the zoom/pan actions are butter smooth.

@Fil Fil changed the title Performance issues from iOS 16 onwards Zoom performance issues from iOS 16 onwards Apr 13, 2023
@Fil Fil transferred this issue from d3/d3 Apr 13, 2023
@Fil
Copy link
Member

Fil commented Apr 13, 2023

Thanks for the report. It would be helpful to isolate the issue a bit more—your app has a lot of code. Do you see the same performance issue on the examples available at https://observablehq.com/collection/@d3/d3-zoom, for instance?

@pavodev
Copy link
Author

pavodev commented Apr 13, 2023

Hi,

Thanks for the quick reply!
I tried the examples and everything runs smooth, the only difference I see is that my elements are filled with an image by using fill: url(#imageid) (the image is an .svg inside a defs element defined like this: <defs><pattern><image xlink:href="https://domain/image.svg"></image></pattern></defs>).

I tried to replace the image fillings with color fillings and the app runs smoothly again. The strange thing is that this wasn't an issue in iOS 15 as the app was running perfectly fine with image fillings...
Do you have any advice on this?

@Fil
Copy link
Member

Fil commented Apr 13, 2023

Sorry, I don't know. What I would try is to put the defs in a separate svg element, but I have not tested and maybe it wouldn't change anything.

@Fil Fil closed this as not planned Won't fix, can't repro, duplicate, stale May 31, 2023
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants