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.
Or does anyone here happen to know a way ?