Login  Register

Re: Pan on mouse wheel zoom implemented.

Posted by dxli on Dec 12, 2024; 3:52pm
URL: https://forum.librecad.org/Pan-on-mouse-wheel-zoom-implemented-tp5725784p5725806.html

Hi Johnfound,

I tested your changes, the only thing I am thinking about improving is to avoid the hard-coded vale 32 in skipping the first zooming.

Conceptually, we should get the value by a ratio of the viewport, or anything intuitive to the end users who have no idea about the implementation details


johnfound wrote
Sorry, but I can't login in github anymore, because of the 2fa. That is why I am posting my changes here.

In addition, besides C++, I am not very good with git workflow as well.

Actually, I have exported the repository to fossil in order to have comfortable version control. Anyway, feel free to use and edit my code as you wish.