fix: inaccurate mouse position (#522)

1. Position of mouse was inaccurate when replaying and this PR will fix it.
2. Fix the bug that if one nested iframe has a scale transform and the position of mouse was inaccurate as well.
This commit is contained in:
Lucky Feng
2021-03-25 10:29:49 +08:00
committed by GitHub
parent ac60676321
commit e3f9a4d205
5 changed files with 28 additions and 9 deletions

2
typings/types.d.ts vendored
View File

@@ -332,6 +332,8 @@ export declare type mediaInteractionCallback = (p: mediaInteractionParam) => voi
export declare type DocumentDimension = {
x: number;
y: number;
relativeScale: number;
absoluteScale: number;
};
export declare type Mirror = {
map: idNodeMap;