Commit 9965ca7f authored by Marco Martin's avatar Marco Martin Committed by Nate Graham
Browse files

Reset the count while the user keeps moving the mouse

re-trigger the edge *only* if the user keeps the mouse still for at
least edges()->reActivationThreshold() - edges()->timeThreshold()

so that the user has to actually keep moving.
if the user keeps moving the cursor in the direction of the edge, it
wion't continuously retrigger it

BUG:457280
parent 5dd8bf8e
Pipeline #231487 passed with stage
in 19 minutes and 59 seconds
......@@ -295,6 +295,8 @@ bool Edge::check(const QPoint &cursorPos, const QDateTime &triggerTime, bool for
}
if (m_lastTrigger.isValid() && // still in cooldown
m_lastTrigger.msecsTo(triggerTime) < edges()->reActivationThreshold() - edges()->timeThreshold()) {
// Reset the time, so the user has to actually keep the mouse still for this long to retrigger
m_lastTrigger = triggerTime;
return false;
}
// no pushback so we have to activate at once
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment