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

View File

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