Re: Pan on mouse wheel zoom implemented.
Posted by
johnfound on
Dec 12, 2024; 5:36pm
URL: https://forum.librecad.org/Pan-on-mouse-wheel-zoom-implemented-tp5725784p5725807.html
Yes, I am fully agree. The hardcoded value was simply for a test. But unfortunately I am not very sure what is the proper solution of this problem. That is why I wanted to test it in practice in hope that will notice some misbehavior or something...
From general considerations follows, that this value should be a slightly (or not slightly) larger than the distance of the unintended/unconscious mouse moves around the center of the screen... But I am still not sure what this value is.
If there are another such distances in librecad, the same value can be used. In general, the snap distance is something similar, but it is usually much smaller...
Any ideas and considerations are welcome.
P.S. BTW, I have checked the source of the FreePCB (where the idea is taken from)
(Click here for the source) and they also use hardcoded constants == 30.