Devlog 47: Pause Compensation
Pause Duration Offset
- Implemented
pauseDurationcalculationDate.now() - pauseStartTimeduring resume actionsstatus === "paused". Shifted all existing lap timestampslap.endTime += pauseDurationforward to subtract paused time intervals.
State-Aware Timestamp Resolution
- Standardized timestamp evaluation across renderers
handleLap,renderListedStopwatch,updateListedStopwatch, andupdateCardUIusing ternary state checks:const now = stopwatch.status === "running" ? Date.now() : stopwatch.pauseStartTime;
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.