1. First click starts the stopwatch
The first click moves the component from idle into its running state.
2. Later clicks add laps
Once the stopwatch is running, each normal click records another lap. The control remains active so the user can keep adding laps while the timer runs.
3. A short reset window opens
After a lap interaction, the State Machine enters a short empty timing state. This state has no visual animation. Its only job is to listen for another click during a precise window.
4. A click inside the reset window resets the component
If another click arrives during that short window, the State Machine routes the component back to idle. The stopwatch is then ready to begin again from the first-click state.
5. No external timing code is required
The timing, lap behavior, and conditional reset are handled inside the Rive State Machine. The empty timing state acts as the logic layer that determines whether the next click adds another lap or resets the component