Skip to content

Commit

Permalink
Merge pull request #3976 from jthistle/275916-handle-selection-areas-…
Browse files Browse the repository at this point in the history
…overlap

fix #275916: handle selection areas overlap too much at low zoom
  • Loading branch information
anatoly-os committed Sep 20, 2018
2 parents 4b3a20c + caca499 commit 34b892d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mscore/events.cpp
Expand Up @@ -369,7 +369,7 @@ void ScoreView::mousePressEvent(QMouseEvent* ev)
break;
editData.element = _foto;
bool gripClicked = false;
qreal a = editData.grip[0].width() * 1.0;
qreal a = editData.grip[0].width() * 0.5;
for (int i = 0; i < editData.grips; ++i) {
if (editData.grip[i].adjusted(-a, -a, a, a).contains(editData.startMove)) {
editData.curGrip = Grip(i);
Expand Down Expand Up @@ -399,7 +399,7 @@ void ScoreView::mousePressEvent(QMouseEvent* ev)

case ViewState::EDIT: {
if (editData.grips) {
qreal a = editData.grip[0].width() * 1.0;
qreal a = editData.grip[0].width() * 0.5;
bool gripFound = false;
for (int i = 0; i < editData.grips; ++i) {
if (editData.grip[i].adjusted(-a, -a, a, a).contains(editData.startMove)) {
Expand Down

0 comments on commit 34b892d

Please sign in to comment.