Merge pull request #579 from microsoft/swradhak/insightsfixforhash

fix import on scroll event
This commit is contained in:
swaathee
2024-04-15 14:53:40 -07:00
committed by GitHub
2 changed files with 4 additions and 3 deletions

View File

@@ -110,3 +110,5 @@ function add(node: Node, parent: Node, data: NodeInfo): void {
values.push({ id, parent: parentId, previous, children: [], data, selector: null, hash: null, region: null, metadata });
}
}
export function get(_node: Node): NodeValue {return null;}

View File

@@ -4,8 +4,7 @@ import { bind } from "@src/core/event";
import { schedule } from "@src/core/task";
import { time } from "@src/core/time";
import { clearTimeout, setTimeout } from "@src/core/timeout";
import { iframe } from "@src/layout/dom";
import * as dom from "../layout/dom";
import { iframe, get } from "@src/layout/dom";
import { target } from "@src/layout/target";
import encode from "./encode";
@@ -77,7 +76,7 @@ function getPositionHash(x: number, y: number): string {
node = node.parentNode;
}
return dom.get(node)?.hash?.[1];
return get(node)?.hash?.[1];
}
export function reset(): void {