1
0
mirror of https://github.com/excalidraw/excalidraw.git synced 2024-11-10 11:35:52 +01:00

fix: grid jittery after partition PR (#6935)

This commit is contained in:
zsviczian 2023-08-27 19:30:47 +02:00 committed by GitHub
parent de1ebad755
commit 188921c247
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -934,10 +934,8 @@ const _renderStaticScene = ({
strokeGrid(
context,
appState.gridSize,
-Math.ceil(appState.zoom.value / appState.gridSize) * appState.gridSize +
(appState.scrollX % appState.gridSize),
-Math.ceil(appState.zoom.value / appState.gridSize) * appState.gridSize +
(appState.scrollY % appState.gridSize),
appState.scrollX,
appState.scrollY,
appState.zoom,
normalizedWidth / appState.zoom.value,
normalizedHeight / appState.zoom.value,