Fix adding incorrect dragging element when handleCanvasPointerD… (#1017)
This commit is contained in:
parent
6b3dee6777
commit
1546c00c0c
@ -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…
x
Reference in New Issue
Block a user