You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you place a SketchCanvas in a ScrollView, drawing vertical lines causes problems, i.e. the canvas stops drawing your line and instead scrolls vertically.
I'm on Android 7, Samsung Galaxy A5.
The text was updated successfully, but these errors were encountered:
So I found a solution to my issue! I think this issue is very niche, but you might want to know the solution. So the problem was that I was rendering some things behind the SketchCanvas (I made it transparent), and onStrokeStart I wanted those things to disappear. But what was happening (I think) was that those things disappearing was causing the SketchCanvas to re-render mid-stroke and interrupt the drawing. I'm not sure exactly why, but if I use the onStrokeChanged callback instead of onStrokeStart, the SketchCanvas draws fine.
If you place a SketchCanvas in a ScrollView, drawing vertical lines causes problems, i.e. the canvas stops drawing your line and instead scrolls vertically.
I'm on Android 7, Samsung Galaxy A5.
The text was updated successfully, but these errors were encountered: