From 188921c24753e37aaa64939eea6ca4ec491bec29 Mon Sep 17 00:00:00 2001 From: zsviczian Date: Sun, 27 Aug 2023 19:30:47 +0200 Subject: [PATCH] fix: grid jittery after partition PR (#6935) --- src/renderer/renderScene.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/renderer/renderScene.ts b/src/renderer/renderScene.ts index 736edb99d..0af732ce6 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,