killerducky / killer_mortal_gui

15 stars 8 forks source link

Fix scaling on Mobile Safari #24

Closed labocho closed 5 months ago

labocho commented 5 months ago

In Safari on iOS 17.4.1, there is an issue with green bars being misaligned. It seems that the transform attribute of SVG elements is being ignored, so I have modified it to use the style attribute instead.

Now: Now

Fixed: Fixed

killerducky commented 5 months ago

I had to add px units to the transforms but I think it's working for my desktop Chrome and my Android Phone. Please verify it's still working for your Safari as well with the 7cf72c2 commit to master.

labocho commented 5 months ago

Please verify it's still working for your Safari as well with the https://github.com/killerducky/killer_mortal_gui/commit/7cf72c2d7639747e689cf4f3e69c0ddddd97e361 commit to master.

It works properly in Safari on my iPhone and iPhone simulator. Thanks!