Skip to content

Virtual whiteboard for sketching hand-drawn like diagrams

fix: grid jittery after partition PR (#6935)

zsviczian188921c24753
diff --git a/src/renderer/renderScene.ts b/src/renderer/renderScene.ts
index 736edb99d8..0af732ce6f 100644
--- a/src/renderer/renderScene.ts
+++ b/src/renderer/renderScene.ts
@@ -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,