mirror of
https://github.com/chenasraf/clarity.git
synced 2026-05-17 17:48:05 +00:00
Merge pull request #579 from microsoft/swradhak/insightsfixforhash
fix import on scroll event
This commit is contained in:
@@ -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;}
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user