-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix grip size (replicate MU3 behaviour) and make it easier to select grips #9414
Conversation
Makes it easier to grab the grip.
I take that something liks eht 1sdt commit might be needed for 3.x as well? MuseScore/mscore/editelement.cpp Lines 39 to 54 in 2513676
and Lines 150 to 155 in 2513676
In either case width and height muliplied by guiScaling ?
|
Partial backport of musescore#9414
@Jojo-Schmitz I don't think it's necessary in MU3, in the first place because it just works as is (don't fix it if it ain't broken 😉). In the second place, I think that the guiScaling is somehow handled by the scaling of the painter in MU3. In MU4, there is a lot of multiplying and dividing with that guiScaling, and I suspect that this shouldn't be necessary. I will research that in the future. Anyway, I see that you added it already to your 3.7 PR, so I will try how it works out in the artifact. |
Yes, please try and tell me. I don't have a HighDPI screen to test this on |
I think it should be removed from the MU3 PR. The result is that the grips are too big when they appear, and when zooming using the trackpad, they jump back to the correct size. |
OK, will do Edit: done. Thanks for checking. Seems I missunderstood the title, "(replicate MU3 behaviour)" to mean that the same issue exists there too |
Checked #9257 on Mac11 - FIXED
Noticed that too.. Will log it as a separate issue |
Resolves: #9257
Despite my comment there, I replicated the MU3 behaviour (which was in fact already done, but guiScaling was not taken into account).
Also, below a grip, there might be elements that do not belong to that grip. When clicking the grip at the location of such an element, that element would get selected rather than the grip. That was frustrating and made it difficult to grab the grip.
I changed that: now, when you click anywhere inside a grip's rectangle, you will be selecting the grip, instead of the unrelated element below it.
(When you still want to select the element below it, just click outside the grip, or click somewhere on the canvas to unselect the element to which the grip belongs, so that the grip disappears.)