Skip to content

Commit

Permalink
Prevent deselection when releasing touch gesture
Browse files Browse the repository at this point in the history
  • Loading branch information
piernov committed Jul 13, 2019
1 parent 6bc437c commit d193a4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/openboardview/BoardView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2242,7 +2242,7 @@ void BoardView::HandleInput() {
m_draggingLastFrame = true;
m_needsRedraw = true;
}
} else {
} else if (m_dragging_token >= 0) { // m_dragging_token == -1 to prevent deselection when doing touch gesture
m_dragging_token = 0;

if (m_lastFileOpenWasInvalid == false) {
Expand Down

0 comments on commit d193a4d

Please sign in to comment.