fix some value inits for the no pushback case
CCBUG: 296762 REVIEW: 104420
This commit is contained in:
parent
06ab909eb2
commit
df32d86d84
1 changed files with 3 additions and 0 deletions
|
@ -219,7 +219,10 @@ void ScreenEdge::check(const QPoint& pos, Time now)
|
||||||
if (pushback_pixels == 0) {
|
if (pushback_pixels == 0) {
|
||||||
// no pushback so we have to activate at once
|
// no pushback so we have to activate at once
|
||||||
m_screenEdgeTimeLast = now;
|
m_screenEdgeTimeLast = now;
|
||||||
|
m_currentScreenEdge = border;
|
||||||
|
m_screenEdgePushPoint = pos;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((m_currentScreenEdge == border) &&
|
if ((m_currentScreenEdge == border) &&
|
||||||
(timestampDiff(m_screenEdgeTimeLast, now) < treshold_reset) &&
|
(timestampDiff(m_screenEdgeTimeLast, now) < treshold_reset) &&
|
||||||
(timestampDiff(m_screenEdgeTimeLastTrigger, now) > treshold_trigger) &&
|
(timestampDiff(m_screenEdgeTimeLastTrigger, now) > treshold_trigger) &&
|
||||||
|
|
Loading…
Reference in a new issue