I think it might be a Xorg vs. Wayland thing rather than browser version. IIRC Wayland does not report coordinates of the window relative to screenspace.
Works fine for me on firefox 120 on windows
The inner browser top(acting like a paddle) is not detecting collision with the ball