paste inside the viewport (#214)
This commit is contained in:
parent
5ade8987e4
commit
b12ea7de3e
@ -319,8 +319,8 @@ class App extends React.Component<{}, AppState> {
|
|||||||
) {
|
) {
|
||||||
clearSelection(elements);
|
clearSelection(elements);
|
||||||
parsedElements.forEach(parsedElement => {
|
parsedElements.forEach(parsedElement => {
|
||||||
parsedElement.x += 10;
|
parsedElement.x = 10 - this.state.scrollX;
|
||||||
parsedElement.y += 10;
|
parsedElement.y = 10 - this.state.scrollY;
|
||||||
parsedElement.seed = randomSeed();
|
parsedElement.seed = randomSeed();
|
||||||
generateDraw(parsedElement);
|
generateDraw(parsedElement);
|
||||||
elements.push(parsedElement);
|
elements.push(parsedElement);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user