Merge pull request #973 from getmaxun/fix-scroll
fix: remote browser scroll
This commit is contained in:
@@ -648,7 +648,6 @@ export const DOMBrowserRenderer: React.FC<RRWebDOMBrowserRendererProps> = ({
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isInCaptureMode) {
|
|
||||||
const wheelEvent = e as WheelEvent;
|
const wheelEvent = e as WheelEvent;
|
||||||
const deltaX = Math.round(wheelEvent.deltaX / 10) * 10;
|
const deltaX = Math.round(wheelEvent.deltaX / 10) * 10;
|
||||||
const deltaY = Math.round(wheelEvent.deltaY / 10) * 10;
|
const deltaY = Math.round(wheelEvent.deltaY / 10) * 10;
|
||||||
@@ -662,7 +661,6 @@ export const DOMBrowserRenderer: React.FC<RRWebDOMBrowserRendererProps> = ({
|
|||||||
}
|
}
|
||||||
notifyLastAction("scroll");
|
notifyLastAction("scroll");
|
||||||
}
|
}
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const clickHandler: EventListener = (e: Event) => {
|
const clickHandler: EventListener = (e: Event) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user