fix: prevent rolling into events of 0 duration

This commit is contained in:
Carlos Valente
2025-10-01 07:05:31 +02:00
committed by Alex Christoffer Rasmussen
parent e22c7698c3
commit 81e00993f2
4 changed files with 38 additions and 7 deletions
+2 -2
View File
@@ -626,7 +626,7 @@ export function roll(
: runtimeState.eventNow.timeEnd;
runtimeState.timer.expectedFinish = normalisedEndTime;
//account for offset
// account for offset
const offsetClock = runtimeState.clock - runtimeState.offset.absolute;
// state catch up
@@ -672,7 +672,7 @@ export function roll(
// we need to persist the current group state across loads
clearEventData();
//account for offset but we only keep it if passed to us
// account for offset but we only keep it if passed to us
runtimeState.offset.absolute = offset;
const offsetClock = runtimeState.clock - runtimeState.offset.absolute;