mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-10 02:49:57 +02:00
fix: reset canvas transformation to not accumulate error on non-zero dPR
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user