Closed PepeExpress closed 2 years ago
I opened this PR that should resolve the problem @Chappie74
Thank you for your contribution.
I'd like to ask (just to up my experience), how were you able to determine it was precision issue with the division? I don't think I would have ever realised this was the issue if I were trying to solve this on my own.
Thank you for setting up this project. To find out what was wrong I just debugged the plugin code and since the dart part looked good I started to debug the native code and noticed that the normalized value of x and y weren't the ones I was expecting. Since I have no experience with C++ I was lucky finding a similar problem googling around! It's strange tho that the y value is still off by 2 pixel, later I will try to see if I can fix that too and I will update the PR
Ahhh gotcha. Thanks again for finding this. I'll look out for the updated PR.
I'm trying to use the
moveTo
method but seems like the pointer is moved to a wrong position. This is the method I use to update the mouse cursor position:If I call this method twice this is the output I get:
In the second log the mouse position is not what should be as pointed out in the first log (the new mouse position should be
2424, 386
but instead is2272, 381