Compare commits

...

4 commits

Author SHA1 Message Date
Ritobroto Kalita
fecfa414de
Merge 7536648b99 into e48b63a0ae 2025-04-07 10:18:37 -03:00
ritk20
7536648b99 correct lint 2024-10-08 15:13:05 +05:30
ritk20
f4db72acdb correct lint 2024-10-04 04:29:26 +05:30
ritk20
975aa686cc Duplication of element while dragging issue fixed 2024-10-04 04:02:50 +05:30

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
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
// put the duplicates where the selected elements used to be.
// (the origin point where the dragging started)