diff --git a/src/index.tsx b/src/index.tsx index 32f4e314..832b3d95 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -319,8 +319,8 @@ class App extends React.Component<{}, AppState> { ) { clearSelection(elements); parsedElements.forEach(parsedElement => { - parsedElement.x += 10; - parsedElement.y += 10; + parsedElement.x = 10 - this.state.scrollX; + parsedElement.y = 10 - this.state.scrollY; parsedElement.seed = randomSeed(); generateDraw(parsedElement); elements.push(parsedElement);