From eeabbe47cea53777b1de321cc5353e9c47dbdc71 Mon Sep 17 00:00:00 2001 From: philter Date: Sat, 7 Dec 2024 00:29:34 +0000 Subject: [PATCH] Improve scroll time precision on web 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) --- .rive_head | 2 +- submodules/rive-runtime | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.rive_head b/.rive_head index affb95df..77afd4cb 100644 --- a/.rive_head +++ b/.rive_head @@ -1 +1 @@ -d0c9e98d2eef8053a6ed57b00b7a55d9d4044bad +d7794cb55668b1a3badcb5aa6b57f922830c95ad diff --git a/submodules/rive-runtime b/submodules/rive-runtime index 60892279..422c8788 160000 --- a/submodules/rive-runtime +++ b/submodules/rive-runtime @@ -1 +1 @@ -Subproject commit 60892279184b23ff1b7e38fea9b255687cc4e003 +Subproject commit 422c87881263fc94ec58968e236ea701eb714a52