Center element on paste (#248)

* Center element on paste

* paste on cursor position

* correctly center elements

* rename vars
This commit is contained in:
Faustino Kialungila 2020-01-09 12:34:46 +01:00 committed by GitHub
parent a73e4e28aa
commit 1ea72e9134
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 75 additions and 29 deletions

View file

@ -21,7 +21,6 @@ Go to https://www.excalidraw.com to start sketching
<a href="https://twitter.com/lucasazzola/status/1215126440330416128"><img width="429" src="https://user-images.githubusercontent.com/197597/72039003-48e99580-3258-11ea-8daa-85dd055f2a82.png">
## Run the code
### Code Sandbox