@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 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 elementCanScroll = utilities.canScroll(scrollableElement, by);
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) {