Scroll wheel and touchpad zoom in smaller increments

Authored by ngraham on Oct 7 2017, 10:26 PM.

Description

Scroll wheel and touchpad zoom in smaller increments

Summary:
BUG: 307637

Change the zoom speed so that the scroll wheel and touchpad zoom behavior matches that of Inkscape and Krita: for more than 100%, the zoom is increased by sqrt(2); for less than 100%, the zoom is decreased by sqrt(0.5). In practice this means the following zoom levels:

35% → 50% → 71% → 100% → 141% → 200% → 283% → 400% → 566% → 800%

This feels much more comfortable and offers more control compared to the current ever-accelerating zoom speed.

Submitting this patch on behalf of Vangelis Tasoulas.

Test Plan: Tested in KDE Neon. Works as advertised.

Reviewers: KDE Applications, vtasoulas, lukas, gateau, rkflx

Reviewed By: vtasoulas, rkflx

Subscribers: ltoscano, anthonyfieroni, rkflx

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

Details

Committed
ngrahamOct 21 2017, 7:03 PM
Reviewer
vtasoulas
Differential Revision
D7972: Scroll wheel and touchpad zoom in smaller increments
Parents
R260:e4b02eeffb6c: GIT_SILENT made messages (after extraction)
Branches
Unknown
Tags
Unknown