Closed yaelFriedmann closed 5 years ago
Confirmed, not only on IE (firefox as well, chrome seems to be immune), and when control points two and three are aligned vertically. Seems like one of the scale factors is getting too small.
Thanks for noticing this, @yaelFriedmann - I longed for a reason to get rid of all the weird trigonometry and switch to cleaner linear algebra transformations.
This was an interesting problem, because the conditions were prompting a skew angle close to pi/2 (with a very large cosine, like 1e+18
) plus a very small scale factor (close to 1e-18
). In theory those would cancel each other, but it seems that some browsers would suffer from floating point rounding errors, and things would become NaN
internally. Switching to an affine matrix gets rid of all the trigonometry and the floating point precision loss.
Thank you very much for the fast fix!
Yael
Wow this helped a lot. Spent couple of days digging into the problem. Working fine in Firefox(68) and Edge(42.17134.1.0) now. Thanks a lot for fix, could you please also update changelog file?
Maybe this issue should be reported to Mozilla?
Maybe this issue should be reported to Mozilla?
I just had the biggest case of dejà vù ever.
Thanks a lot for fix, could you please also update changelog file?
...and done ;-)
When I rotate the image in 90 deg the image suddenly disappears
http://ivansanchez.github.io/Leaflet.ImageOverlay.Rotated/demo.html
Thanks Yael Friedmann