From 9a3e2f602eb080df92b198d13bc05d3763c189bc Mon Sep 17 00:00:00 2001 From: Alexander Capehart Date: Mon, 20 Oct 2025 10:30:19 -0600 Subject: [PATCH] Align fast scroll indicator with thumb top --- .../org/oxycblt/auxio/list/recycler/FastScrollRecyclerView.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/org/oxycblt/auxio/list/recycler/FastScrollRecyclerView.kt b/app/src/main/java/org/oxycblt/auxio/list/recycler/FastScrollRecyclerView.kt index 18e8f9e7a..a072a210c 100644 --- a/app/src/main/java/org/oxycblt/auxio/list/recycler/FastScrollRecyclerView.kt +++ b/app/src/main/java/org/oxycblt/auxio/list/recycler/FastScrollRecyclerView.kt @@ -305,10 +305,9 @@ constructor(context: Context, attrs: AttributeSet? = null, @AttrRes defStyleAttr } val popupAnchorY = popupHeight / 2 - val thumbAnchorY = thumbView.height / 2 val popupTop = - (thumbTop + thumbAnchorY - popupAnchorY) + (thumbTop - popupAnchorY) .coerceAtLeast(thumbPadding.top + popupLayoutParams.topMargin) .coerceAtMost( height - thumbPadding.bottom - popupLayoutParams.bottomMargin - popupHeight)