improve prevent default event when replay

This commit is contained in:
Yanzhen Yu
2018-11-23 18:06:19 +08:00
parent 17fe17b452
commit eab30bd274
4 changed files with 42 additions and 11 deletions

View File

@@ -53,8 +53,8 @@ function record(options: recordOptions = {}) {
data: {
node,
initialOffset: {
left: document.documentElement.scrollLeft,
top: document.documentElement.scrollTop,
left: document.documentElement!.scrollLeft,
top: document.documentElement!.scrollTop,
},
},
}),