https://bugs.kde.org/show_bug.cgi?id=388205

Eike Hein <h...@kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED
      Latest Commit|                            |https://commits.kde.org/pla
                   |                            |sma-desktop/62f92fd822efb05
                   |                            |9a07dd77c93158ecba73d1ced

--- Comment #6 from Eike Hein <h...@kde.org> ---
Git commit 62f92fd822efb059a07dd77c93158ecba73d1ced by Eike Hein.
Committed on 01/06/2018 at 18:56.
Pushed by hein into branch 'master'.

Implement a triangle filter for mouse events on the Kickoff tabbar

Summary:
D11848 started out with the aim to remove the delay on Kickoff tab
switching, but this proved contentious because it can cause user
frustration over accidental tab switching when moving from the tab
bar to the list view at angle, grazing another tab.

This patch implements a triangle filter to get the best of both
worlds. When the mouse motion vector is within the triangle from
the vector starting coordinate pair to the relevant tab bar
corners, the original 250ms delay remains in use. When the vector
is outside the triangle, tabs are switched immediately - improving
even over the 50ms delay proposed in D11848.

Care is taken so that tab switching is always immediate when the
tab bar is freshly entered, e.g. moving from the panel to Kickoff.

As a small advantage this removes a MouseArea item from each tab
button.

Reviewers: ngraham, davidedmundson, rkflx, cfeck

Subscribers: plasma-devel

Tags: #plasma

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

M  +131  -10   applets/kickoff/package/contents/ui/FullRepresentation.qml
M  +0    -12   applets/kickoff/package/contents/ui/KickoffButton.qml

https://commits.kde.org/plasma-desktop/62f92fd822efb059a07dd77c93158ecba73d1ced

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to