Skip to content
Discussion options

You must be logged in to vote

So i figured out this is expected and the workaround for this would be to pass a SkHostRect object and specifically pass the bounds to createPicture fn in the 2nd param

rect(x, y, width, height)

So let's say for infinite horizontal scroll you have original canvas of width 400. Since the canvas is supposed to be horizontally scrolled infinitely you need to calculate content width of your scroll and set it as width in rect, then for x it would be -contentWidth + original width of canvas = 400

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by akug17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant