detail: enable fast scrolling

Finally possible with the new thumb enabling/disabling and scroll
design.
This commit is contained in:
Alexander Capehart
2025-01-03 14:44:58 -07:00
parent bf9b842407
commit ab81995d1c
6 changed files with 13 additions and 10 deletions
@@ -110,6 +110,9 @@ abstract class DetailFragment<P : MusicParent, C : Music> :
val detailContent = binding.detailToolbarContent
detailContent.alpha = inRatio
detailContent.translationY = spacingSmall * (1 - inRatio)
// Enable fast scrolling once fully collapsed
binding.detailRecycler.thumbEnabled = ratio == 1f
}
abstract fun onOpenParentMenu()