Skip to content

Commit

Permalink
fix: solve the smooth scrolling scene, the y value obtained is the da…
Browse files Browse the repository at this point in the history
…ta 100ms ago
  • Loading branch information
xujiujiu committed Apr 7, 2024
1 parent 3d1877c commit 39f3e4d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/rrweb/src/record/observer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,9 @@ export function initScrollObserver({
}
}),
sampling.scroll || 100,
{
trailing: true
}
),
);
return on('scroll', updatePosition, doc);
Expand Down

0 comments on commit 39f3e4d

Please sign in to comment.