Skip to content

Commit

Permalink
🐞 fix: remove cannot drop draggable while other elements are animated
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosjorger committed Feb 14, 2025
1 parent fa0ebf4 commit 77c3c84
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/utils/events/emitEvents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,14 +178,8 @@ export default function useEmitEvents<T>(

const targetPosition = targetBoundingClientRect[before];
const targetSize = targetBoundingClientRect[distance];

const targetMiddle = targetPosition + targetSize / 2;

const isTransitioned = targetElement.getAnimations().length !== 0;

if (isTransitioned) {
return;
}
const targetTransform = getTransform(targetElement)[axis];
const targetMiddleWithoutTransform = targetMiddle - targetTransform;

Expand Down

0 comments on commit 77c3c84

Please sign in to comment.