-
Notifications
You must be signed in to change notification settings - Fork 139
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
Transform bug in SVG elements in Safari #159
Comments
... to prevent an issue in Safari where the chart totally breaks (aholachek/react-flip-toolkit#159)
Hi Marcel, Sorry for the delay in response, and thank you for providing a helpful test case. Due to my lack of in-depth knowledge surrounding svg animations, I can't say for sure what is wrong, and my efforts to debug your animation in Safari didn't yield anything conclusive. To be honest, Safari seems to be the source of many compatibility headaches, so personally, I like your linked approach of simply disabling animations for Safari. One thing that might be interesting to try is having the library detect whether the Also, the |
Hi Alex, first off, thank you very much for your helpful response. Yeah I must admit that I also don't really grasp what's going on here, and am not very familiar with SVG animations either. I was just happy that
That's too bad. This fix was originally meant as a stopgap (because I, too, couldn't find a way to fix the issues in Safari), but at least the animation is not a must have for us. It can help keep track of a country when "playing back" a time series, but it looks like Safari users have to live without it then.
That's a good pointer! I'll try and see whether I can quickly see if this makes a difference.
Thank you! |
Okay, I've had a look into the issue for a long time now. Here's what I could gather:
I hope this somewhat helps. |
Hi 👋
We're using your awesome library at Our World in Data to animate our charts, and it's very nice to use. So, thank you for making our life a tiny little bit easier in that regard.
We're using it in what is probably not exactly a supported use case, namely animating SVG elements. And it works fine!
However, we have noticed that this breaks in weird ways in Safari (Safari 14, on desktop and iOS), where the
translate
position applied to a element is not honored.I was able to create a small test case that works fine on Firefox and Chrome, but breaks on Safari: https://codesandbox.io/s/react-flip-toolkit-list-shuffle-example-forked-jysq0?file=/src/index.js
After shuffling, all re-ordered numbers end up in the upper left corner on Safari
I would assume that this is an issue with Safari and not with your library, but it would still be great to know if you can think of a way that we can circumvent the issue!
Thank you,
Marcel from Our World in Data
The text was updated successfully, but these errors were encountered: