input: fix touch input getting borked on quick tile
The decorationPressId never gets reset as the decoration isn't below the touch point anymore after the quick tile, so if we have no decoration under the touch point reset the decorationPressId to -1. CCBUG: 430560
This commit is contained in:
parent
893f95eed8
commit
a4dcfbfb31
1 changed files with 6 additions and 0 deletions
|
@ -1223,6 +1223,12 @@ public:
|
|||
Q_UNUSED(time);
|
||||
auto decoration = input()->touch()->decoration();
|
||||
if (!decoration) {
|
||||
// can happen when quick tiling
|
||||
if (input()->touch()->decorationPressId() == id) {
|
||||
m_lastGlobalTouchPos = QPointF();
|
||||
m_lastLocalTouchPos = QPointF();
|
||||
input()->touch()->setDecorationPressId(-1);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
if (input()->touch()->decorationPressId() == -1) {
|
||||
|
|
Loading…
Reference in a new issue