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

Clicking and dragging envelope points does not work reliably #91

Open
kzantow opened this issue Aug 27, 2022 · 0 comments
Open

Clicking and dragging envelope points does not work reliably #91

kzantow opened this issue Aug 27, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@kzantow
Copy link

kzantow commented Aug 27, 2022

Describe the bug
Hovering/clicking points in the envelope does not always work properly. Most times clicking and dragging a point works, but especially in cases where there are multiple close together with overlapping graphics (like a sustain level of 0 and a short release) the UI does not always select the most appropriate point, or any point at all when trying to edit the envelope.

NOTE: this is sporadic and infrequent when attempting to edit envelopes.

Also NOTE: it appears to work once a point gets the hover style, but hovering over the envelope point with the mouse doesn't always get the hover style, it seems like the left side of the point is where the problem is more likely.

What did you try to do
I have not found an exact way to reliably replicate this. Probably the closest is: make the smallest possible envelope (shortest attack, decay, sustain 0, shortest release), attempt to edit the envelope.

Expected behavior
The closest point moves when I click and drag within a particular distance.

Software (please complete the following information):

P.S.: I implemented this in my own plugin (STFU: https://zeeks.app/) using a distance formula and found this to be very reliable. I'm happy to share the code/algorithm/approach if that would help at all (it's C++ and just a very simple distance formula).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants