Skip to content

Commit

Permalink
fix #275916: handle selection areas overlap too much at low zoom
Browse files Browse the repository at this point in the history
  • Loading branch information
jthistle committed Sep 19, 2018
1 parent 161be58 commit caca499
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 caca499

Please sign in to comment.