End pause (#832)

* refactor: trigger ahead

* refactor: refresh often

* fix: handle empty rundown updates

* fix: handle falsy values

* style: avoid overlap of components

* refactor: freeze end option
This commit is contained in:
Carlos Valente
2024-03-19 18:04:05 +01:00
committed by GitHub
parent 8156da03d5
commit 4bb836b6f2
18 changed files with 89 additions and 39 deletions
@@ -1219,7 +1219,7 @@ describe('updateRoll()', () => {
clock: 11,
timer: {
current: 10,
expectedFinish: 15,
expectedFinish: 100,
secondaryTimer: null,
startedAt: 1,
},
@@ -1229,7 +1229,7 @@ describe('updateRoll()', () => {
} as RuntimeState;
const expected = {
updatedTimer: 15 - 11,
updatedTimer: 100 - 11,
updatedSecondaryTimer: null, // usually clock - expectedFinish
doRollLoad: false,
isFinished: false,