Revert "Align fast scroll indicator with thumb top"

This reverts commit 9a3e2f602e.
This commit is contained in:
Alexander Capehart
2025-11-04 10:39:14 -07:00
parent a2ea523320
commit 15e9ba8b9c
@@ -305,9 +305,10 @@ constructor(context: Context, attrs: AttributeSet? = null, @AttrRes defStyleAttr
}
val popupAnchorY = popupHeight / 2
val thumbAnchorY = thumbView.height / 2
val popupTop =
(thumbTop - popupAnchorY)
(thumbTop + thumbAnchorY - popupAnchorY)
.coerceAtLeast(thumbPadding.top + popupLayoutParams.topMargin)
.coerceAtMost(
height - thumbPadding.bottom - popupLayoutParams.bottomMargin - popupHeight)