mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-04-14 16:40:58 -04:00
Fix adding incorrect dragging element when handleCanvasPointerD… (#1017)
This commit is contained in:
parent
6b3dee6777
commit
1546c00c0c
1 changed files with 1 additions and 1 deletions
|
@ -1626,7 +1626,7 @@ export class App extends React.Component<any, AppState> {
|
||||||
if (element.type === "selection") {
|
if (element.type === "selection") {
|
||||||
this.setState({
|
this.setState({
|
||||||
selectionElement: element,
|
selectionElement: element,
|
||||||
draggingElement: element,
|
draggingElement: hitElement ? hitElement : element,
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
globalSceneState.replaceAllElements([
|
globalSceneState.replaceAllElements([
|
||||||
|
|
Loading…
Add table
Reference in a new issue