Ricardo
Member
Hey!
I've been using for long time @Nocturne script to do scaling in HTML5. That old, good and always working HTML5 scaling snipped is now giving me offset coordinates. It seems like the GUI size is not following the canvas scaling, affecting clicks events in objects.
I can see Mark reported the issue here, and although it was flagged as resolved, it seems like the problem is still there (I even downloaded the attached example and managed to reproduce the problem, the square is not clickable when the windows is resized).
I also created my own example that shows the offset problem in action when the windows is resized down.
Does anyone knows if this is a valid bug/issue, or if something that changed in the runner now requires a different approach in the scaling code I might be ignoring? I tried several approaches and unfortunately I can't find a working scaling solution for HTML5 anymore.
I've been using for long time @Nocturne script to do scaling in HTML5. That old, good and always working HTML5 scaling snipped is now giving me offset coordinates. It seems like the GUI size is not following the canvas scaling, affecting clicks events in objects.
I can see Mark reported the issue here, and although it was flagged as resolved, it seems like the problem is still there (I even downloaded the attached example and managed to reproduce the problem, the square is not clickable when the windows is resized).
I also created my own example that shows the offset problem in action when the windows is resized down.
Does anyone knows if this is a valid bug/issue, or if something that changed in the runner now requires a different approach in the scaling code I might be ignoring? I tried several approaches and unfortunately I can't find a working scaling solution for HTML5 anymore.