getBoundingClientRect on Xbox
Sunday, February 19, 2023
I learned something interesting at work the other day. We use getBoundingClientRect to find the position of a movie poster and then blow it up slightly. Well the blown up image is supposed to be on top of the existing movie poster, but on Xbox (and some Samsung TVs) this was not the case. The blown up image was in the top left corner. After a lot of investigation I found the issue was that we were expecting to have getBoundingClientRect.…