Blame view

天文台pc/tianwentai-ui/node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.mjs 590 Bytes
bc518174   王天杨   提交两个项目文件
1
2
3
4
5
6
7
8
9
10
11
12
13
14
  import { addDomEvent } from '../../events/add-dom-event.mjs';
  import { createProjectionNode } from './create-projection-node.mjs';
  
  const DocumentProjectionNode = createProjectionNode({
      attachResizeListener: (ref, notify) => addDomEvent(ref, "resize", notify),
      measureScroll: () => ({
          x: document.documentElement.scrollLeft || document.body?.scrollLeft || 0,
          y: document.documentElement.scrollTop || document.body?.scrollTop || 0,
      }),
      checkIsScrollRoot: () => true,
  });
  
  export { DocumentProjectionNode };
  //# sourceMappingURL=DocumentProjectionNode.mjs.map