fix: grid jittery after partition PR (#6935)
This commit is contained in:
parent
de1ebad755
commit
188921c247
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user