sugarlabs / musicblocks

Music Blocks -- A musical microworld
https://musicblocks.sugarlabs.org/
GNU Affero General Public License v3.0
539 stars 726 forks source link

Something strange about x, y positioning for certain screens #3900

Open pikurasa opened 1 month ago

pikurasa commented 1 month ago

I've run into this a few times.

Today, I ran into it with a classroom smart board. x and y were offset enough to cause issues for any projects that used "set x/y".

I've also seen something similar on laptops, which becomes evident for our projects that set the height based on pitch.

In terms of reproducibility, if you use dev tools, and short code that prints Cartesian and sets x/y to zero, you can get results like this:

Screenshot from 2024-05-30 10-28-02

walterbender commented 1 month ago

Did you try refreshing your screen after switching over to the smart board? I can only reproduce the error if I change the size of my browser window and run the code w/o a refresh in between. If I refresh, the grid is properly configured.

pikurasa commented 1 month ago

I did not think to refresh...