Skip to content
Permalink
Browse files

Increase scrolling speed for carousels

  • Loading branch information
chrisbanes committed Dec 2, 2019
1 parent c4d737b commit 46cbc42645b4011b0f21413026c792f032f16659
Showing with 3 additions and 1 deletion.
  1. +3 −1 common-epoxy/src/main/java/app/tivi/common/epoxy/EpoxyInitializer.kt
@@ -36,7 +36,9 @@ class EpoxyInitializer @Inject constructor() : AppInitializer {
// Also setup Carousel to use a more sane snapping behavior
Carousel.setDefaultGlobalSnapHelperFactory(object : Carousel.SnapHelperFactory() {
override fun buildSnapHelper(context: Context): SnapHelper {
return GravitySnapHelper(Gravity.START)
return GravitySnapHelper(Gravity.START).apply {
scrollMsPerInch = 70f
}
}
})
}

0 comments on commit 46cbc42

Please sign in to comment.
You can’t perform that action at this time.