<table><tr><td style="">hein created this revision.<br />hein added reviewers: ngraham, davidedmundson, rkflx, cfeck.<br />Restricted Application added a project: Plasma.<br />hein requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D13192">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p><a href="https://phabricator.kde.org/D11848" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: line-through;">D11848</a> started out with the aim to remove the delay on Kickoff tab<br />
switching, but this proved contentious because it can cause user<br />
frustration over accidental tab switching when moving from the tab<br />
bar to the list view at angle, grazing another tab.</p>

<p>This patch implements a triangle filter to get the best of both<br />
worlds. When the mouse motion vector is within the triangle from<br />
the vector starting coordinate pair to the relevant tab bar<br />
corners, the original 250ms delay remains in use. When the vector<br />
is outside the triangle, tabs are switched immediately - improving<br />
even over the 50ms delay proposed in <a href="https://phabricator.kde.org/D11848" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: line-through;">D11848</a>.</p>

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

<p>As a small advantage this removes a MouseArea item from each tab<br />
button.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R119 Plasma Desktop</div></div></div><br /><div><strong>BRANCH</strong><div><div>master</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D13192">https://phabricator.kde.org/D13192</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>applets/kickoff/package/contents/ui/FullRepresentation.qml<br />
applets/kickoff/package/contents/ui/KickoffButton.qml</div></div></div><br /><div><strong>To: </strong>hein, ngraham, davidedmundson, rkflx, cfeck<br /><strong>Cc: </strong>plasma-devel, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart<br /></div>