Skip to content
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: Right-clicking a layer on a just opened file shows empty menu #2781

Merged
merged 1 commit into from
Aug 11, 2022

Conversation

ice0
Copy link
Collaborator

@ice0 ice0 commented Aug 9, 2022

The issue was introduced by this commit (87cc5d2)

When the list of selected layers was empty, then
clicking on the layer opened an empty menu.

Now the logic has changed:

If the layer is in the list of selected layers, then
actions are applied to them, if not, then the selection
is removed from them and the layer that was clicked
becomes selected (and actions applied to it).

fix #2779

The issue was introduced by this commit (87cc5d2)

When the list of selected layers was empty, then
clicking on the layer opened an empty menu.

Now the logic has changed:
If the layer is in the list of selected layers, then
actions are applied to them, if not, then the selection
is removed from them and the layer that was clicked
becomes selected (and actions applied to it).
@rodolforg
Copy link
Contributor

I'm not sure about this behavior change.

Inkscape does it in other way: when multiple objects are selected, right click is about them, no matter where you clicked.

I don't know what is better though

@ice0
Copy link
Collaborator Author

ice0 commented Aug 10, 2022

right click is about them, no matter where you clicked.

Am I miss something?

Inkscape.Test.mp4

@rodolforg
Copy link
Contributor

rodolforg commented Aug 10, 2022

No. It's about difference of versions ;)

Gravacao.de.tela.de.09-08-2022.23.39.48.webm

@ice0 ice0 merged commit bb36171 into synfig:master Aug 11, 2022
@ice0 ice0 deleted the fix-empty-menu branch August 11, 2022 08:14
morevnaproject pushed a commit that referenced this pull request Dec 4, 2022
…2781)

The issue was introduced by PR #2352

When the list of selected layers was empty, then
clicking on the layer opened an empty menu.

Now the logic has changed:
If the layer is in the list of selected layers, then
actions are applied to them, if not, then the selection
is removed from them and the layer that was clicked
becomes selected (and actions applied to it).
@rodolforg rodolforg mentioned this pull request Jun 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Right-clicking a layer on a just opened file shows empty menu
2 participants