diff --git a/src/GestureManager.cpp b/src/GestureManager.cpp index c7d290e..359637a 100644 --- a/src/GestureManager.cpp +++ b/src/GestureManager.cpp @@ -200,11 +200,7 @@ void GestureManager::dragGestureUpdate(const wf::touch::gesture_event_t& ev) { } void GestureManager::handleDragGestureEnd(const DragGesture& gev) { - if (!this->getActiveDragGesture().has_value()) { - return; - } - - switch (this->getActiveDragGesture()->type) { + switch (gev.type) { case DragGestureType::SWIPE: emulateSwipeEnd(0, false); return;