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

Freehand mode drawing experience could be smoother #4

Closed
JamesLMilner opened this issue Nov 20, 2022 · 1 comment
Closed

Freehand mode drawing experience could be smoother #4

JamesLMilner opened this issue Nov 20, 2022 · 1 comment
Labels
UX An issue with the experience of a drawing mode or adapter

Comments

@JamesLMilner
Copy link
Owner

Original issue for this is #2 (thank you again @dabreegster!) , I am extracting this so it can be tackled in isolation.

The problem here is that the Freehand drawing tool currently uses a rate limiting/throttling mechanism against the incoming events, to prevent too many points being created and hence a large amount of data. However, as pointed out this can lead to a bit of a choppy experience whilst drawing. The solutions here are to potentially decrease the aggressiveness of the throttling via the reducing the everyNthMouseEvent default property, or to take a different approach such as a minimum distance threshold (probably best to implement in pixel distance). The pixel distance approach would probably be the smoother of the two approaches but it would be good to experiment. There may also be other approaches, or a combination which result in better results with regards to the smoothness/data size tradeoff.

@JamesLMilner JamesLMilner added the UX An issue with the experience of a drawing mode or adapter label Nov 20, 2022
@JamesLMilner
Copy link
Owner Author

Resolved in 0.0.1-alpha.9. You can now use the minDistance property that defaults to 20 pixels.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
UX An issue with the experience of a drawing mode or adapter
Projects
None yet
Development

No branches or pull requests

1 participant