mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fix: reset canvas transformation to not accumulate error on non-zero dPR
This commit is contained in:
parent
0749d2c1f3
commit
add75b8c93
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue