diff --git a/src/components/GridLattice.vue b/src/components/GridLattice.vue index 30ec36e9..cc04cbd7 100644 --- a/src/components/GridLattice.vue +++ b/src/components/GridLattice.vue @@ -92,7 +92,18 @@ watch(svgElement, (element) => { observer.observe(element) }) -watch(() => store.modulus, computeExtent) +watch( + () => [ + store.viewScale, + store.minX, + store.maxX, + store.minY, + store.maxY, + store.viewCenterX, + store.viewCenterY + ], + computeExtent +)