motion-dom 12.27.4 → 12.27.5

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/dist/cjs/index.js CHANGED
@@ -8945,8 +8945,8 @@ function checkNodeWasScrollRoot(node) {
8945
8945
  const DocumentProjectionNode = createProjectionNode$1({
8946
8946
  attachResizeListener: (ref, notify) => addDomEvent(ref, "resize", notify),
8947
8947
  measureScroll: () => ({
8948
- x: document.documentElement.scrollLeft || document.body.scrollLeft,
8949
- y: document.documentElement.scrollTop || document.body.scrollTop,
8948
+ x: document.documentElement.scrollLeft || document.body?.scrollLeft || 0,
8949
+ y: document.documentElement.scrollTop || document.body?.scrollTop || 0,
8950
8950
  }),
8951
8951
  checkIsScrollRoot: () => true,
8952
8952
  });