@dnd-kit/dom 0.1.15 → 0.1.16-beta-20250521211202

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.cjs CHANGED
@@ -772,7 +772,11 @@ render_fn = function() {
772
772
  const delta2 = geometry.Point.delta(translate2, previousTranslate);
773
773
  dragOperation.shape = geometry.Rectangle.from(
774
774
  currentShape.boundingRectangle
775
- ).translate(delta2.x, delta2.y);
775
+ ).translate(
776
+ // Need to take into account frame transform when optimistically updating shape
777
+ delta2.x * frameTransform.scaleX,
778
+ delta2.y * frameTransform.scaleY
779
+ );
776
780
  } else {
777
781
  dragOperation.shape = new utilities.DOMRectangle(feedbackElement);
778
782
  }