Skip to content

Commit

Permalink
Improve scroll time precision on web
Browse files Browse the repository at this point in the history
This implements 2 fixes:
1. Use window.precision.now() on web due to precision rounding to the nearest millisecond.
2. As a result of 1, sometimes the elapsed time difference gets rounded to 0. Since this can still happen in some cases (on websites without CSP headers), we ignore elapsedSeconds when 0.

Diffs=
d7794cb556 Improve scroll time precision on web (#8705)
  • Loading branch information
philter committed Dec 7, 2024
1 parent 3e60706 commit 4ce7a9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .rive_head
Original file line number Diff line number Diff line change
@@ -1 +1 @@
d0c9e98d2eef8053a6ed57b00b7a55d9d4044bad
d7794cb55668b1a3badcb5aa6b57f922830c95ad
2 changes: 1 addition & 1 deletion submodules/rive-runtime

0 comments on commit 4ce7a9d

Please sign in to comment.