Skip to content

Commit

Permalink
fix: don't trigger edge gestures on drag end
Browse files Browse the repository at this point in the history
  • Loading branch information
horriblename committed Jan 12, 2024
1 parent fcec290 commit 18dfd78
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/GestureManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 18dfd78

Please sign in to comment.