add check
This commit is contained in:
parent
5e60b3dc95
commit
5bd886b930
1 changed files with 10 additions and 8 deletions
|
|
@ -172,6 +172,7 @@ export function TopPanel({rt, rtIdx, time, setTime, onInit, onClear, onRaise, on
|
|||
|
||||
function onSkip() {
|
||||
const now = performance.now();
|
||||
if (nextTimedTransition) {
|
||||
setTime(time => {
|
||||
if (time.kind === "paused") {
|
||||
return {kind: "paused", simtime: nextTimedTransition[0]};
|
||||
|
|
@ -181,6 +182,7 @@ export function TopPanel({rt, rtIdx, time, setTime, onInit, onClear, onRaise, on
|
|||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function onSlower() {
|
||||
onTimeScaleChange((timescale/2).toString(), performance.now());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue