Fix adding incorrect dragging element when handleCanvasPointerD… (#1017)

This commit is contained in:
Chang Yan 2020-03-20 03:00:50 -07:00 committed by GitHub
parent 6b3dee6777
commit 1546c00c0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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([