Skip to content
Commit 1e66de8f authored by Peter Mühlenpfordt's avatar Peter Mühlenpfordt
Browse files

Keep click position in focus on middle-click zoom

Summary:
Clicking on an image in View Mode with the middle mouse button toggles
between `Fit` and `100%` zoom modes. The image zoomed to `100%` is
always scrolled to the image center.
This patch keeps the clicked location in focus as it is done while
zooming with {key Ctrl Scroll}.

FEATURE: 308335

Test Plan:
* Open a big image in View Mode
* Middle-click on different locations over the image
* The `100%` zoom view should keep the clicked location in focus

Reviewers: #gwenview, rkflx

Reviewed By: #gwenview, rkflx

Subscribers: rkflx, huoni

Differential Revision: https://phabricator.kde.org/D11336
parent d850c3f0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment