Skip to content

Commit

Permalink
fix: keep track of cancellable in swipeStart
Browse files Browse the repository at this point in the history
  • Loading branch information
matt1432 committed Nov 14, 2024
1 parent a722e4b commit f9b5174
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/GestureManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,15 +133,17 @@ bool GestureManager::handleDragGesture(const DragGestureEvent& gev) {
g_pHookSystem->emit(PEVENTVEC, info,
IPointer::SSwipeBeginEvent{.fingers = (uint32_t)gev.finger_count});

if (info.cancelled) {
if (!info.cancelled) {
this->hookHandled = true;
this->previousSwipePoint = this->m_sGestureState.get_center().delta();
return true;
}
} else {
this->hookHandled = false;
return true;
}
}
return true;
return false;
}

case DragGestureType::EDGE_SWIPE:
Expand Down

0 comments on commit f9b5174

Please sign in to comment.