Skip to content

Commit

Permalink
fix: progress default spring option
Browse files Browse the repository at this point in the history
  • Loading branch information
nervo authored and meowgorithm committed Jun 17, 2024
1 parent 0b15a9f commit c3e07c9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions progress/progress.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,13 +187,15 @@ func New(opts ...Option) Model {
PercentFormat: " %3.0f%%",
colorProfile: termenv.ColorProfile(),
}
if !m.springCustomized {
m.SetSpringOptions(defaultFrequency, defaultDamping)
}

for _, opt := range opts {
opt(&m)
}

if !m.springCustomized {
m.SetSpringOptions(defaultFrequency, defaultDamping)
}

return m
}

Expand Down

0 comments on commit c3e07c9

Please sign in to comment.