mirror of
https://github.com/4ian/GDevelop.git
synced 2025-10-15 10:19:04 +00:00
Fix: Do not highlight instance on hover if moving an instance around (#5700)
This commit is contained in:
@@ -169,4 +169,8 @@ export default class InstancesMover {
|
||||
this.totalDeltaX = 0;
|
||||
this.totalDeltaY = 0;
|
||||
}
|
||||
|
||||
isMoving() {
|
||||
return !!this._initialSelectionAABB;
|
||||
}
|
||||
}
|
||||
|
@@ -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 = (
|
||||
|
Reference in New Issue
Block a user