Explorar o código

fix: grid jittery after partition PR (#6935)

zsviczian %!s(int64=2) %!d(string=hai) anos
pai
achega
188921c247
Modificáronse 1 ficheiros con 2 adicións e 4 borrados
  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,