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