fix: progress default spring option

This commit is contained in:
Florian Rey
2024-06-17 09:03:35 -04:00
committed by Christian Rocha
parent 0b15a9fad1
commit c3e07c9b36
+5 -3
View File
@@ -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
}