Skip to content
Permalink
Browse files

Merge pull request #539 from chrisbanes/cb/snap-speed

Increase scrolling speed for carousels
  • Loading branch information
chrisbanes committed Dec 2, 2019
2 parents c4d737b + 46cbc42 commit 15a027c834769b57d315b9d4fa48dbfc084da66b
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 15a027c

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