Skip to content

Commit

Permalink
fixed bug horizontal smooth scroll was not working
Browse files Browse the repository at this point in the history
  • Loading branch information
ch4vi committed Jan 9, 2017
1 parent 9b0f5c6 commit 9276408
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ class FlowLayoutManager(
override fun computeScrollVectorForPosition(targetPosition: Int): PointF {
val target = rectList[targetPosition]
if (orientation == RecyclerView.VERTICAL) return PointF(0F, target.top.toFloat())
return PointF(0F, target.right.toFloat())
return PointF(target.right.toFloat(), 0F)
}
}
scroller.targetPosition = position
Expand Down

0 comments on commit 9276408

Please sign in to comment.