Skip to content

Commit

Permalink
fix: drag gestures stopping when another is cancelled
Browse files Browse the repository at this point in the history
  • Loading branch information
horriblename committed Jan 23, 2024
1 parent d5ad7b3 commit 2e9ad96
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions src/GestureManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,23 +160,7 @@ bool handleGestureBind(std::string bind, bool pressed) {
return found;
}

void GestureManager::handleCancelledGesture() {
if (!this->getActiveDragGesture().has_value()) {
return;
}

// FIXME: make it so handleDragGestureEnd is called instead of handling this here
switch (this->getActiveDragGesture()->type) {
case DragGestureType::SWIPE:
this->emulateSwipeEnd(0, false);
return;
case DragGestureType::LONG_PRESS:
break;
case DragGestureType::EDGE_SWIPE:
this->emulateSwipeEnd(0, false);
break;
}
}
void GestureManager::handleCancelledGesture() {}

void GestureManager::dragGestureUpdate(const wf::touch::gesture_event_t& ev) {
if (!this->getActiveDragGesture().has_value()) {
Expand Down

0 comments on commit 2e9ad96

Please sign in to comment.