mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Also for text
This commit is contained in:
parent
2fa00f39fc
commit
9aaaa24426
1 changed files with 4 additions and 0 deletions
|
@ -252,12 +252,16 @@ function App() {
|
|||
elements.push(element);
|
||||
if (elementType === "text") {
|
||||
setDraggingElement(null);
|
||||
element.isSelected = true;
|
||||
} else {
|
||||
setDraggingElement(element);
|
||||
}
|
||||
drawScene();
|
||||
}}
|
||||
onMouseUp={e => {
|
||||
if (draggingElement === null) {
|
||||
return;
|
||||
}
|
||||
if (elementType === "selection") {
|
||||
// Remove actual selection element
|
||||
elements.pop();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue