The two-finger zoom seems to always zoom to the center position. Expected behaviour: If the user marks a rectangle with the fingers, e.g. in the top left corner of the view, and then pulls the rectangle to the size of the screen, the former top left corner should be shown full screen. The same should probably apply to zooming with Ctrl + Mouse Wheel, i.e. zoom to mouse position. This is how zooming is handled in e.g. inkscape and any other document centric application I am aware of.
That needs somebody to implement it. The current code for the gesture zooming is very simple and short. It is in the method PageView::gestureEvent, if you want to have a look.
*** Bug 159408 has been marked as a duplicate of this bug. ***
*** Bug 429197 has been marked as a duplicate of this bug. ***
This might be a duplicate of https://bugs.kde.org/show_bug.cgi?id=421755. This bug has a merge request attached to it.
Yeah. Forward-duping since that bug already has a submitted merge request that will fix it. *** This bug has been marked as a duplicate of bug 421755 ***
*** This bug has been marked as a duplicate of bug 159408 ***
*** Bug 448478 has been marked as a duplicate of this bug. ***
*** Bug 472924 has been marked as a duplicate of this bug. ***
Git commit 3306e4f35d212f9eb64d28108b2b684012c9ce4e by Nicolas Fella. Committed on 11/08/2023 at 13:27. Pushed by nicolasfella into branch 'master'. Hold zoom center below fingers on pinch zoom Which feels more natural than always zooming towards the center of the window. Co-authored-by: Steffen Hartleib <sh033@gmx.de> Co-authored-by: Oliver Sander <oliver.sander@tu-dresden.de> M +101 -11 part/pageview.cpp M +6 -0 part/pageview.h https://invent.kde.org/graphics/okular/-/commit/3306e4f35d212f9eb64d28108b2b684012c9ce4e