-
|
When using the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
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
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 |
Beta Was this translation helpful? Give feedback.
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
widthin rect, then forxit would be-contentWidth + original width of canvas = 400