Skip to content

Commit

Permalink
Merge pull request #86 from selvinn/fix_seekbar_ios10
Browse files Browse the repository at this point in the history
Bug fix in seekbar iOS10
  • Loading branch information
josejuanqm authored Mar 29, 2021
2 parents cea94e8 + d519e89 commit 78ad6ca
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,10 @@ open class VersaPlayerControls: View {
}

public func setSeekbarSlider(start startValue: Double, end endValue: Double, at time: Double) {
let time = time.isNaN ? 0 : time
let startValue = startValue.isNaN ? 0 : startValue
let endValue = endValue.isNaN ? 0 : endValue

#if os(macOS)
seekbarSlider?.minValue = startValue
seekbarSlider?.maxValue = endValue
Expand Down

0 comments on commit 78ad6ca

Please sign in to comment.