I'm developing an app for drawing above an image, I have restricted the canvas height and width but I can draw more than the specified height and width.
I should be able to restrict drawing height to the view's height and width. I need something like this UI part I can take care. Just that drawing part alone I'm facing issues.
On what kind of device are you using this library?
Environment
Current Behavior
I'm developing an app for drawing above an image, I have restricted the canvas height and width but I can draw more than the specified height and width.
Code:
Sample Video:
https://user-images.githubusercontent.com/84722936/226907436-95a15c8f-93aa-44bf-b241-6b659e4c4e47.mov
Expected Behavior
I should be able to restrict drawing height to the view's height and width. I need something like this UI part I can take care. Just that drawing part alone I'm facing issues.
https://user-images.githubusercontent.com/84722936/227951680-f556f280-cd9c-49b9-a7f3-a11024878652.MP4
Steps To Reproduce
You can check my above code in the current behavior section.
Anything else?
No response