Improve experience when using mouse clicks to zoom

Authored by rkflx on Jul 13 2018, 10:30 PM.

Description

Improve experience when using mouse clicks to zoom

Summary:
Gwenview allows to Ctrl-click to zoom in, and
Ctrl-right-click zooms out. However, when clicking fast only every
other click resulted in a zooming action, making the experience feel
slow and cumbersome.

The cause for this is that fast clicks are detected as double-clicks,
with only the first single-click being delivered to Gwenview.

By also zooming when double-clicking, for fast clicks each and every
click will result in an action, making zooming feel natural again.
Luckily there still won't be any duplicate clicks.

Test Plan:
Hold Ctrl, repeatedly press left and right mouse buttons (start
slowly and then increase clicking rate). Zooming should work reliably
now.

Reviewers: Gwenview, ngraham

Reviewed By: Gwenview, ngraham

Subscribers: ngraham

Differential Revision: https://phabricator.kde.org/D14104

Details

Committed
rkflxJul 14 2018, 11:03 PM
Reviewer
Gwenview
Differential Revision
D14104: Improve experience when using mouse clicks to zoom
Parents
R260:2324a8681a44: Remove unused constant from DragPixmapGenerator
Branches
Unknown
Tags
Unknown