This commit is contained in:
Ritobroto Kalita 2025-04-11 00:26:36 -04:00 committed by GitHub
commit ae5669e185
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -8506,7 +8506,11 @@ class App extends React.Component<AppProps, AppState> {
} }
// We duplicate the selected element if alt is pressed on pointer move // We duplicate the selected element if alt is pressed on pointer move
if (event.altKey && !pointerDownState.hit.hasBeenDuplicated) { if (
event.altKey &&
!pointerDownState.hit.hasBeenDuplicated &&
!this.state.selectedElementsAreBeingDragged
) {
// Move the currently selected elements to the top of the z index stack, and // Move the currently selected elements to the top of the z index stack, and
// put the duplicates where the selected elements used to be. // put the duplicates where the selected elements used to be.
// (the origin point where the dragging started) // (the origin point where the dragging started)