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

finetune presets selection for long lists #18103

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

dterrahe
Copy link
Member

Tries to address the issue mentioned here #17987 (comment) (@todd-prior) and also fixes #18080 which, if I understand correctly, is the same issue.

If you click-and-hold the mouse button on the presets button, you can move the mouse to your desired preset which then gets selected immediately upon releasing the mouse button. This creates a problem if the preset list is so long that it doesn't fit above or below the preset button; it will then be placed on top of the button and some preset will be under the mouse when you release it, even if you intended it to be a "normal" (quick, non-hold) click that should have just opened the list and not selected anything.

This PR first checks if the mouse has been moved, before acting when the mouse-button is released.

It also fixes a (totally) unrelated bug that would disable the "long right-click on preset copies the lua code to activate the preset to the clipboard" functionality for modules that cannot have multiple instances (and where therefore a short right-click does not create a new instance).

I cannot reproduce #18064 but maybe someone can check if this PR changes anything for that issue?

@ralfbrown ralfbrown added bugfix pull request fixing a bug scope: UI user interface and interactions labels Dec 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix pull request fixing a bug scope: UI user interface and interactions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

dt 5.0.0 - user can't save new preset if there are lot of existing
2 participants