Skip to content

Commit

Permalink
fix: fix the initial value error for sliderOffsetRatio
Browse files Browse the repository at this point in the history
  • Loading branch information
guoyingtao committed Jun 14, 2023
1 parent bc79bac commit 22ab04f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Inchworm/Source/SlideRuler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class SlideRuler: UIView {
}

private func setupUI() {
sliderOffsetRatio = positionInfoProvider.getOffsetRatio()
sliderOffsetRatio = positionInfoProvider.getInitialOffsetRatio()

setupSlider()
makeRuler()
Expand Down

0 comments on commit 22ab04f

Please sign in to comment.