@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 +5 -2
- package/index.cjs.map +1 -1
- package/index.js +5 -2
- package/index.js.map +1 -1
- package/package.json +5 -5
- package/utilities.cjs.map +1 -1
- package/utilities.d.cts +1 -1
- package/utilities.d.ts +1 -1
- package/utilities.js.map +1 -1
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(
|
|
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
|
}
|