Revamp (Activity) Pager wheel handling

Authored by hein on Jan 31 2017, 6:19 AM.



Fixes the mouse wheel not working to switch activities by
refactoring the code so currentPage() always behaves the
same and accounting for virt desktops starting at 1 only
where it actually counts, then fixing an off-by-one along
the way.

Also introduces the wheel event handling logic used in
Task Manager and many other UIs to avoid reacting overly
sensitively to gesture scroll events from trackpads.

Diff Detail

R119 Plasma Desktop
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.
hein updated this revision to Diff 10753.Jan 31 2017, 6:19 AM
hein retitled this revision from to Revamp (Activity) Pager wheel handling.
hein updated this object.
hein edited the test plan for this revision. (Show Details)
hein added a reviewer: Plasma.
hein added a subscriber: plasma-devel.
Restricted Application added a project: Plasma. · View Herald TranscriptJan 31 2017, 6:19 AM
mart accepted this revision.Feb 1 2017, 10:44 AM
mart added a reviewer: mart.
This revision is now accepted and ready to land.Feb 1 2017, 10:44 AM
This revision was automatically updated to reflect the committed changes.