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

PointerEvent and drawing bug #10

Closed
bobosette opened this issue Feb 17, 2021 · 3 comments
Closed

PointerEvent and drawing bug #10

bobosette opened this issue Feb 17, 2021 · 3 comments

Comments

@bobosette
Copy link

Hello. Let me congrat with you for this work, It's a really useful package. Thank you.
But I noticed two issue:
1 Is there a way to get from the control some other infos like tilt, pressure, distance (these can be retreived with PointerEvent)?
2 When you first touch the display with the pen/hand, draw a very small path, then you get off the pen/hand from the display, and keep going like this, it seems difficult for the painter to draw these minipaths with precision. I don't know how to explain, I hope you have understood. Maybe I can fix this issue be increasing the velocity property??

@RomanBase
Copy link
Owner

Hi,

  1. Currently no. Because library is focused primary to Signature drawing.. and pressure is not so relevant in this scenario. Mostly you just 'swing' your signature without any pressure, so velocity based line width is more useful.

  2. You can adjust threshold - it controls minimal distance between two points. So with lower threshold you will receive more control points.

@RomanBase
Copy link
Owner

RomanBase commented Feb 19, 2021

A little note to 2nd point:

Library uses PanGestureRecognizer to handle PointerEvents and this gesture recognizer has input lag before 'drag' starts. Thats the reason why really small lines can't be drawn.

On devel branch you can find version with custom and very simple GestureRecognizer, But this implementation is still in very early version and without any testing..

@bobosette
Copy link
Author

Just tried! It works fine. Tomorrow I'll make more tests but there are no more lags.

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