Keep click position in focus on middle-click zoom

Authored by muhlenpfordt on Mar 14 2018, 2:26 PM.

Description

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 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

Details

Committed
muhlenpfordtMar 15 2018, 1:45 PM
Reviewer
Gwenview
Differential Revision
D11336: Keep click position in focus on middle-click zoom
Parents
R260:d850c3f0aea3: Do not duplicate work of KAboutData::setupCommandLine()
Branches
Unknown
Tags
Unknown