@dnd-kit/dom 0.0.10 → 0.0.11-beta-20250328152317

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
@@ -954,11 +954,14 @@ var Scroller = class extends (_a3 = abstract.CorePlugin, _autoScrolling_dec = [s
954
954
  let previousElementFromPoint = null;
955
955
  let previousScrollableElements = null;
956
956
  const elementFromPoint = state.computed(() => {
957
- const { position } = manager.dragOperation;
957
+ const { position, source } = manager.dragOperation;
958
958
  if (!position) {
959
959
  return null;
960
960
  }
961
- const element = utilities.getElementFromPoint(document, position.current);
961
+ const element = utilities.getElementFromPoint(
962
+ utilities.getDocument(source == null ? void 0 : source.element),
963
+ position.current
964
+ );
962
965
  if (element) {
963
966
  previousElementFromPoint = element;
964
967
  }