soupjake/drawapp

Drawing outside the canvas

mirunamd opened this issue · 1 comments

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

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