improvements

- stage manager sees timer with negative values
- time up only shows if timer has been running
- use spacebar to toggle navbar
- pip shows times with delays
improve iterate
This commit is contained in:
cv
2021-05-10 23:21:06 +02:00
parent bd677163ed
commit 5449aee0b0
5 changed files with 50 additions and 15 deletions
+4 -7
View File
@@ -215,16 +215,13 @@ const withSocket = (Component) => {
/*** -------------------------------- ***/
/******************************************/
// inject info:
// is timer finished
let finished = timer.currentSeconds <= 0;
// get clock
let clock = stringFromMillis(timer.clock);
// get clock string
const timeManager = {
...timer,
finished: finished,
clock: clock,
finished: timer.running <= 0 && timer.startedAt,
clock: stringFromMillis(timer.clock),
playstate: playback,
};