Skip to content

Commit

Permalink
Fixed the issue with incorrect thumb position calculation in vertical…
Browse files Browse the repository at this point in the history
… mode. #17
  • Loading branch information
litao0621 committed Aug 20, 2024
1 parent 4f6752c commit af318eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion slider/src/main/java/com/litao/slider/BaseSlider.kt
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@ abstract class BaseSlider constructor(context: Context, attrs: AttributeSet? = n
}

val ty = if (isVertical()) {
cy - thumbDrawable.bounds.width() / 2f
cy - thumbDrawable.bounds.height() / 2f
} else {
cy
}
Expand Down

0 comments on commit af318eb

Please sign in to comment.