fix some logic errors from refactoring

This commit is contained in:
Drew Weymouth
2024-05-31 17:21:33 -07:00
parent 0a902aef9f
commit c6c1341f8f
7 changed files with 53 additions and 36 deletions
+1 -1
View File
@@ -281,7 +281,7 @@ func (p *PlaybackManager) SeekFraction(fraction float64) error {
} else if fraction > 1 {
fraction = 1
}
target := p.engine.curTrackTime * fraction
target := p.engine.curTrackDuration * fraction
return p.engine.SeekSeconds(target)
}