Browse Source

fix: grid jittery after partition PR (#6935)

pull/6944/head
zsviczian 2 years ago committed by GitHub
parent
commit
188921c247
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      src/renderer/renderScene.ts

6
src/renderer/renderScene.ts

@ -934,10 +934,8 @@ const _renderStaticScene = ({ @@ -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,

Loading…
Cancel
Save