From 15e9ba8b9c01c59035da0a863ec55604c2bc440e Mon Sep 17 00:00:00 2001 From: Alexander Capehart Date: Tue, 4 Nov 2025 10:39:14 -0700 Subject: [PATCH] Revert "Align fast scroll indicator with thumb top" This reverts commit 9a3e2f602eb080df92b198d13bc05d3763c189bc. --- .../org/oxycblt/auxio/list/recycler/FastScrollRecyclerView.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 a072a210c..18e8f9e7a 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,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)