@posthog/rrweb-record 0.0.33 → 0.0.34
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/rrweb-record.cjs +5 -2
- package/dist/rrweb-record.cjs.map +1 -1
- package/dist/rrweb-record.js +5 -2
- package/dist/rrweb-record.js.map +1 -1
- package/dist/rrweb-record.umd.cjs +5 -2
- package/dist/rrweb-record.umd.cjs.map +2 -2
- package/dist/rrweb-record.umd.min.cjs +35 -35
- package/dist/rrweb-record.umd.min.cjs.map +3 -3
- package/package.json +1 -1
|
@@ -926,6 +926,7 @@ function hrefFrom(n2) {
|
|
|
926
926
|
return n2.href;
|
|
927
927
|
}
|
|
928
928
|
function serializeElementNode(n2, options) {
|
|
929
|
+
var _a2, _b;
|
|
929
930
|
const {
|
|
930
931
|
doc,
|
|
931
932
|
blockClass,
|
|
@@ -1099,11 +1100,13 @@ function serializeElementNode(n2, options) {
|
|
|
1099
1100
|
}
|
|
1100
1101
|
}
|
|
1101
1102
|
if (needBlock) {
|
|
1102
|
-
const { width, height } = n2.getBoundingClientRect();
|
|
1103
|
+
const { width, height, left, top } = n2.getBoundingClientRect();
|
|
1103
1104
|
attributes = {
|
|
1104
1105
|
class: attributes.class,
|
|
1105
1106
|
rr_width: `${width}px`,
|
|
1106
|
-
rr_height: `${height}px
|
|
1107
|
+
rr_height: `${height}px`,
|
|
1108
|
+
rr_left: `${Math.floor(left + (((_a2 = doc.defaultView) == null ? void 0 : _a2.scrollX) || 0))}px`,
|
|
1109
|
+
rr_top: `${Math.floor(top + (((_b = doc.defaultView) == null ? void 0 : _b.scrollY) || 0))}px`
|
|
1107
1110
|
};
|
|
1108
1111
|
}
|
|
1109
1112
|
if (tagName === "iframe" && !keepIframeSrcFn(attributes.src)) {
|