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

Finish drawing callback #44

Open
MarkYav opened this issue Mar 12, 2023 · 0 comments
Open

Finish drawing callback #44

MarkYav opened this issue Mar 12, 2023 · 0 comments

Comments

@MarkYav
Copy link

MarkYav commented Mar 12, 2023

The feature request
Please, can you add a callback when a user finishes drawing a line/curve?

The description of the solution I'd like
To my mind, it will be useful to have a drawing callback when a user finishes drawing a line and put away his/her finger from the screen. We have the trackHistory() callback for the moment when a user starts drawing, but there is no such thing when the user finishes drawing a line.

Alternatives I've considered
It is possible to use some click listener on top of the DrawBox, but this looks more like a hotfix and it is hard to understand for other people.
Also, I was trying to use trackBitmaps(...) to get the bitmap after each drawing, but it is not working as intended. Maybe it is also possible to make this function open so we can override it as we want.

Usage context
I need this callback to execute a function with the latest bitmap data. The thing is that I want to execute it every time a user draws a line.

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