feat: disable scroll action on loading
This commit is contained in:
@@ -667,6 +667,12 @@ export const DOMBrowserRenderer: React.FC<RRWebDOMBrowserRendererProps> = ({
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (isCachingChildSelectors) {
|
||||||
|
e.preventDefault();
|
||||||
|
e.stopPropagation();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
||||||
if (!isInCaptureMode) {
|
if (!isInCaptureMode) {
|
||||||
@@ -1009,7 +1015,8 @@ export const DOMBrowserRenderer: React.FC<RRWebDOMBrowserRendererProps> = ({
|
|||||||
height: "100%",
|
height: "100%",
|
||||||
border: "none",
|
border: "none",
|
||||||
display: "block",
|
display: "block",
|
||||||
overflow: "hidden !important",
|
overflow: isCachingChildSelectors ? "hidden !important" : "hidden !important",
|
||||||
|
pointerEvents: isCachingChildSelectors ? "none" : "auto",
|
||||||
}}
|
}}
|
||||||
sandbox="allow-same-origin allow-forms allow-scripts"
|
sandbox="allow-same-origin allow-forms allow-scripts"
|
||||||
title="DOM Browser Content"
|
title="DOM Browser Content"
|
||||||
|
|||||||
Reference in New Issue
Block a user