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

How to paint even if starting point is out of bounds? #7

Open
purplehaze2602 opened this issue Jul 12, 2024 · 1 comment
Open

How to paint even if starting point is out of bounds? #7

purplehaze2602 opened this issue Jul 12, 2024 · 1 comment

Comments

@purplehaze2602
Copy link

Hey,
for my purposes I am setting some shape to the canvas. The problem is for the canvas to start drawing the first touch has to be within the bounds of the canvas.
Is there any way to make it such that even if I start outside the canvas, it gets drawn on when I move over the canvas.
Would greatly appreciate it if someone could help me out.

@alnitak
Copy link
Owner

alnitak commented Jul 13, 2024

Hi @purplehaze2602,

I think it's not possible. At least could be on desktop platforms where we can grab events like mouse enter. Don't know if this event is supported on mobile also. Please feel free to check and maybe do a PR, would be great!

There could be anyway some gesture arena problems. Think if you tap on a button then, instead of rising the finger up, you drag it into the finger painter widget. The gesture, I think, is still focused to the button.

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

2 participants