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

Cumulative error when moving mouse long distances #2

Open
Qarj opened this issue Sep 13, 2020 · 1 comment
Open

Cumulative error when moving mouse long distances #2

Qarj opened this issue Sep 13, 2020 · 1 comment

Comments

@Qarj
Copy link

Qarj commented Sep 13, 2020

In my testing there appears to be some kind of possible cumulative error that creeps in when moving the mouse long distances.

In the function move_to_area I removed the random component for the target location.

In a test I found moving the mouse from 229,199 to 6312,1589 the final calculated point by the function bezier(ts) is in fact [6414.064814991564, 1628.489157870313] which is in fact way off target (using deviation of 30 and speed of 4).

The workaround solution for me appears to be call the function twice.

Thanks very much for this by the way, it looks like a very useful project!

@dav-ell
Copy link

dav-ell commented Dec 17, 2020

Running into this same issue.

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