@screeb/rrweb 1.0.3 → 1.0.4
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.cjs +3 -3
- package/dist/rrweb.cjs.map +1 -1
- package/dist/rrweb.js +3 -3
- package/dist/rrweb.js.map +1 -1
- package/dist/rrweb.umd.cjs +3 -3
- package/dist/rrweb.umd.cjs.map +2 -2
- package/dist/rrweb.umd.min.cjs +1 -1
- package/dist/rrweb.umd.min.cjs.map +3 -3
- package/package.json +1 -1
package/dist/rrweb.umd.cjs
CHANGED
|
@@ -11751,14 +11751,14 @@ function initScrollObserver({
|
|
|
11751
11751
|
);
|
|
11752
11752
|
return on("scroll", updatePosition, doc);
|
|
11753
11753
|
}
|
|
11754
|
-
function initViewportResizeObserver({ viewportResizeCb }, { win }) {
|
|
11754
|
+
function initViewportResizeObserver({ viewportResizeCb, win: _win }, { win }) {
|
|
11755
11755
|
let lastH = -1;
|
|
11756
11756
|
let lastW = -1;
|
|
11757
11757
|
const updateDimension = callbackWrapper(
|
|
11758
11758
|
throttle(
|
|
11759
11759
|
callbackWrapper(() => {
|
|
11760
|
-
const height = getWindowHeight(
|
|
11761
|
-
const width = getWindowWidth(
|
|
11760
|
+
const height = getWindowHeight(_win);
|
|
11761
|
+
const width = getWindowWidth(_win);
|
|
11762
11762
|
if (lastH !== height || lastW !== width) {
|
|
11763
11763
|
viewportResizeCb({
|
|
11764
11764
|
width: Number(width),
|