Update progress bar with public harmonica release

This commit is contained in:
Christian Rocha
2021-07-26 11:33:24 -04:00
parent 202d5a9f9d
commit 90d8eaffeb
3 changed files with 4 additions and 4 deletions

View File

@@ -183,7 +183,7 @@ func (m Model) Update(msg tea.Msg) (Model, tea.Cmd) {
return m, nil
}
m.spring.Update(&m.percent, &m.velocity, m.targetPercent)
m.percent, m.velocity = m.spring.Update(m.percent, m.velocity, m.targetPercent)
return m, m.nextFrame()
default: