@dnd-kit/dom 0.5.1-beta-20260713030121 → 0.5.1-beta-20260905201412
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 +9 -2
- package/index.cjs.map +1 -1
- package/index.js +10 -3
- package/index.js.map +1 -1
- package/package.json +5 -5
- package/sortable.cjs +4 -0
- package/sortable.cjs.map +1 -1
- package/sortable.d.cts +2 -1
- package/sortable.d.ts +2 -1
- package/sortable.js +4 -1
- package/sortable.js.map +1 -1
- package/utilities.cjs +5 -4
- package/utilities.cjs.map +1 -1
- package/utilities.d.cts +29 -3
- package/utilities.d.ts +29 -3
- package/utilities.js +5 -5
- package/utilities.js.map +1 -1
package/index.cjs
CHANGED
|
@@ -1359,14 +1359,21 @@ var Scroller = class extends (_a4 = abstract.CorePlugin, _autoScrolling_dec = [s
|
|
|
1359
1359
|
return false;
|
|
1360
1360
|
}
|
|
1361
1361
|
for (const scrollableElement of elements) {
|
|
1362
|
-
const
|
|
1362
|
+
const scrollPosition = utilities.getScrollPosition(scrollableElement);
|
|
1363
|
+
const elementCanScroll = utilities.canScroll(
|
|
1364
|
+
scrollableElement,
|
|
1365
|
+
by,
|
|
1366
|
+
scrollPosition
|
|
1367
|
+
);
|
|
1363
1368
|
if (elementCanScroll.x || elementCanScroll.y) {
|
|
1364
1369
|
const { speed, direction } = utilities.detectScrollIntent(
|
|
1365
1370
|
scrollableElement,
|
|
1366
1371
|
currentPosition,
|
|
1367
1372
|
intent,
|
|
1368
1373
|
scrollOptions == null ? void 0 : scrollOptions.acceleration,
|
|
1369
|
-
scrollOptions == null ? void 0 : scrollOptions.threshold
|
|
1374
|
+
scrollOptions == null ? void 0 : scrollOptions.threshold,
|
|
1375
|
+
void 0,
|
|
1376
|
+
scrollPosition
|
|
1370
1377
|
);
|
|
1371
1378
|
if (scrollIntent) {
|
|
1372
1379
|
for (const axis of geometry.Axes) {
|