2
0
Эх сурвалжийг харах

fix: reset canvas transformation to not accumulate error on non-zero dPR

dwelle 4 жил өмнө
parent
commit
add75b8c93

+ 1 - 0
src/renderer/renderScene.ts

@@ -207,6 +207,7 @@ export const renderScene = (
 
   const context = canvas.getContext("2d")!;
 
+  context.resetTransform();
   context.scale(scale, scale);
 
   // When doing calculations based on canvas width we should used normalized one