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

Drawing outside the canvas #6

Closed
mirunamd opened this issue Nov 16, 2020 · 1 comment
Closed

Drawing outside the canvas #6

mirunamd opened this issue Nov 16, 2020 · 1 comment

Comments

@mirunamd
Copy link

mirunamd commented Nov 16, 2020

Is there any code that deals with this sort of behaviour? I changed the code a little and I want to make sure I didn't delete the part of the code that is responsible for not drawing outside the canvas.

Simulator Screen Shot - iPhone 12 Pro Max - 2020-11-16 at 16 28 57

@mirunamd
Copy link
Author

Turns out it was just a matter of not allowing offsets (localPosition) which were bigger or less than my canvas size in GestureDetector.

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