Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with ScrollView #57

Closed
isghanim opened this issue Jul 12, 2018 · 1 comment
Closed

Problems with ScrollView #57

isghanim opened this issue Jul 12, 2018 · 1 comment

Comments

@isghanim
Copy link

isghanim commented Jul 12, 2018

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.

@isghanim
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant