Skip to content

Commit f0d12c7

Browse files
committed
update consts
1 parent 8f89e37 commit f0d12c7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

resources/shared/helpers.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ export function getAllElements(selector, path = [], lookupStartNode = document)
2323
return elements;
2424
}
2525

26-
export function forceLayout(body, layoutMode = "elementFromPoint") {
26+
export function forceLayout(body, layoutMode = "getBoundingRectAndElementFromPoint") {
2727
body ??= document.body;
2828
const rect = body.getBoundingClientRect();
29-
if (layoutMode === "elementFromPoint")
29+
if (layoutMode === "getBoundingRectAndElementFromPoint")
3030
return document.elementFromPoint((rect.width / 2) | 0, (rect.height / 2) | 0);
3131
return rect.height;
3232
}

0 commit comments

Comments
 (0)