mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-28 22:53:09 +00:00
swipearea: Fix release when not in swipe
This commit is contained in:
parent
16a3165cd9
commit
427077fa78
1 changed files with 4 additions and 1 deletions
|
|
@ -249,8 +249,11 @@ void SwipeArea::handlePressEvent(QPointerEvent *event, QPointF point)
|
|||
|
||||
void SwipeArea::handleReleaseEvent(QPointerEvent *event, QPointF point)
|
||||
{
|
||||
// if we are in a swipe
|
||||
if (m_moving) {
|
||||
Q_EMIT swipeEnded();
|
||||
}
|
||||
resetSwipe();
|
||||
Q_EMIT swipeEnded();
|
||||
}
|
||||
|
||||
void SwipeArea::handleMoveEvent(QPointerEvent *event, QPointF point)
|
||||
|
|
|
|||
Loading…
Reference in a new issue