Ver Fonte

fix: grid jittery after partition PR (#6935)

zsviczian há 1 ano atrás
pai
commit
188921c247
1 ficheiros alterados com 2 adições e 4 exclusões
  1. 2 4
      src/renderer/renderScene.ts

+ 2 - 4
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,