detail: enable fast scrolling
Finally possible with the new thumb enabling/disabling and scroll design.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user