Skip to content

Commit

Permalink
Merge pull request #78 from horriblename/fix-inhibit-drag-end
Browse files Browse the repository at this point in the history
refactor: remove unneeded checks
  • Loading branch information
horriblename committed Jan 12, 2024
2 parents fcec290 + acbe2fd commit 960229c
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 960229c

Please sign in to comment.