4 ms·
To OP: The fix is setting canvas width to window.innerWidth * window.devicePixelRatio, and height to window.innerHeight * window.devicePixelRatio. Then use CSS
by Matheus28 3y ago
To OP:
The fix is setting canvas width to window.innerWidth * window.devicePixelRatio, and height to window.innerHeight * window.devicePixelRatio. Then use CSS to maximize the canvas on the screen.
- TrevorSundberg 3y agoThanks, I’ll make the fix!
- deleted 3y ago[deleted]
- TrevorSundberg 3y agoFixed: https://github.com/raverie-us/raverie-engine/commit/aa7e1b6c7fef9a409755a2050fee8d283765de52 https://github.com/raverie-us/raverie-engine/commit/aa7e1b6c... Had to take into account the mouse coordinates too since they were not scaled.