Skip to content

Commit d3f86de

Browse files
committed
Improving click and drag by not unselecting groups.
1 parent ddb0ac6 commit d3f86de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/FieldCanvas.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,10 +147,10 @@ void FieldCanvas::OnMouseLeftDown_default(CalChart::Coord pos, bool shiftDown, b
147147
if (curr_lasso == CC_DRAG::SWAP) {
148148
OnMouseLeftDown_CC_DRAG_SWAP(pos);
149149
}
150-
if (!(shiftDown || altDown)) {
150+
auto i = mView->FindPoint(pos);
151+
if ((i < 0) && !(shiftDown || altDown)) {
151152
mView->UnselectAll();
152153
}
153-
auto i = mView->FindPoint(pos);
154154
if (i < 0) {
155155
// if no point selected, we grab using the current lasso
156156
BeginSelectDrag(curr_lasso, pos);

0 commit comments

Comments
 (0)