Skip to content

Commit 3a87f7d

Browse files
tanemclaude
andcommitted
Correct the minimum option's mid-animation docs
The README said changing `minimum` while the bar is animating restarts it from the first increment. The `start` reducer case returns the existing state unchanged when the phase is already `animating`, so progress holds instead. Describe what the code does. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
1 parent 63b1dcf commit 3a87f7d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ Whether the bar is running. Going `true` starts it, going `false` completes it.
133133

134134
#### `minimum`
135135

136-
Lower bound for `progress`, between `0` and `1`. The first increment starts from `0.1` rather than from `0`, so the bar appears at `max(0.1, minimum)` and the option only shows through when it is set above `0.1`. Changing it while the bar is animating restarts the bar from that first increment.
136+
Lower bound for `progress`, between `0` and `1`. The first increment starts from `0.1` rather than from `0`, so the bar appears at `max(0.1, minimum)` and the option only shows through when it is set above `0.1`. Changing it while the bar is animating does not rewind the bar. Progress holds where it is, and the new bound applies from the next increment.
137137

138138
### Return Value
139139

0 commit comments

Comments
 (0)