Make sure the new scale is finite when setting the width/height of display objects.#3917
Make sure the new scale is finite when setting the width/height of display objects.#3917kmeisthax merged 3 commits intoruffle-rs:masterfrom desuwa:finite_scale
Conversation
|
This indeed seems to significantly improve MX components (see video). The only major things in games like IB seem to be the submenu white background and scroll buttons not appearing instantly. 2021-04-07_17-26-50.mp4 |
|
Many thanks for looking at this issue that I had opened in #3700 and #2006. I installed the 2021-04-08 nightly and was delighted that all the menus on the website I am working on appear to be functioning as they should and make selections possible. As mentioned elsewhere, the menus were always able to open in Gecko-based browsers like Firefox, but did not allow selection. |
Small change to fix a case where setting the width / height on an empty movie clip would lock its dimensions to zero.
A bunch of divisions by zero can happen inside
set_width/set_heightif the bounding box is empty which would set the scale to NaN. This would make the clip stuck with zero dimensions (_widthand_heightwill always return 0 even if the bounding box changes) since the current scale is used to calculate the new scale as far as I understand.Should fix #2006