News for hackers. Stuff that matters.
Re:It's always been you, Canvas2D by moron4hire on Friday March 04, 2022 @07:29PM (#30562521)
DevicePixelRatio and clientWidth/clientHeight change together. You need only the Resize event on the Canvas. Your canvas.clientWidth * window.devicePixelRatio will always be the native width of the canvas.

There are no comments on this comment yet.