Fix: Do not highlight instance on hover if moving an instance around (#5700)

This commit is contained in:
AlexandreS
2023-10-02 10:50:09 +02:00
committed by GitHub
parent b636eeb859
commit 3d86820581
2 changed files with 6 additions and 1 deletions

View File

@@ -169,4 +169,8 @@ export default class InstancesMover {
this.totalDeltaX = 0;
this.totalDeltaY = 0;
}
isMoving() {
return !!this._initialSelectionAABB;
}
}

View File

@@ -738,7 +738,8 @@ export default class InstancesEditor extends Component<Props> {
};
_onOverInstance = (instance: gdInitialInstance) => {
this.highlightedInstance.setInstance(instance);
if (!this.instancesMover.isMoving())
this.highlightedInstance.setInstance(instance);
};
_onDownInstance = (