Fix WebGL scaling issues
This fixes the strange behavior when out of full-screen in WebGL builds.
Note that if you build for aspect ratios that are not 16:9, this issue will return. That likely would require a more complex fix. The UI is broken at those aspect ratios so I considered that fix unnecessary.