@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.js
CHANGED
|
@@ -11716,14 +11716,14 @@ function initScrollObserver({
|
|
|
11716
11716
|
);
|
|
11717
11717
|
return on("scroll", updatePosition, doc);
|
|
11718
11718
|
}
|
|
11719
|
-
function initViewportResizeObserver({ viewportResizeCb }, { win }) {
|
|
11719
|
+
function initViewportResizeObserver({ viewportResizeCb, win: _win }, { win }) {
|
|
11720
11720
|
let lastH = -1;
|
|
11721
11721
|
let lastW = -1;
|
|
11722
11722
|
const updateDimension = callbackWrapper(
|
|
11723
11723
|
throttle(
|
|
11724
11724
|
callbackWrapper(() => {
|
|
11725
|
-
const height = getWindowHeight(
|
|
11726
|
-
const width = getWindowWidth(
|
|
11725
|
+
const height = getWindowHeight(_win);
|
|
11726
|
+
const width = getWindowWidth(_win);
|
|
11727
11727
|
if (lastH !== height || lastW !== width) {
|
|
11728
11728
|
viewportResizeCb({
|
|
11729
11729
|
width: Number(width),
|