From 6dbd56b9a5ddc3d3707f5d684ddd3f845234eddf Mon Sep 17 00:00:00 2001 From: bodymovin Date: Wed, 22 May 2024 21:42:03 +0000 Subject: [PATCH] fix for unexpected triggered events fixes #7226 This PR fixes reports of events when animations are playing backward. It considers both the timeline speed and the state machine state speed to determine direction. It also handles not reporting an event twice if it comes from a "ping pong" loop. It also adds a small performance improvement, skipping the binary search if possible. Diffs= 265c00985 fix for unexpected triggered events (#7227) --- .rive_head | 2 +- wasm/submodules/rive-cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.rive_head b/.rive_head index dd5879ce..a329f6d8 100644 --- a/.rive_head +++ b/.rive_head @@ -1 +1 @@ -8a538c243fcc5b72159388a7e63669f1e6998dda +265c009852e86492deb69277ad18aa2c394c93e5 diff --git a/wasm/submodules/rive-cpp b/wasm/submodules/rive-cpp index 35f22ae7..78672988 160000 --- a/wasm/submodules/rive-cpp +++ b/wasm/submodules/rive-cpp @@ -1 +1 @@ -Subproject commit 35f22ae75d7720d64f1bdf72259b370bc6834fa6 +Subproject commit 78672988b26d793c93e3f7c31329e715b956c680