-
Notifications
You must be signed in to change notification settings - Fork 34
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
Update internal state before message send on select (was click-drag-borked) #1270
Comments
whoa that's bad. i wonder when that started. i'll look at this one as a priority. |
The log message shows
If I had to guess I would look hard at 0babc62 Note that it only started happening for me when i added a second group. |
OK smallest possible repro is this empty SC so need to run this with the selection debugger to see if its a back end or up problem. Will work on this as priority next. |
Oh ha no you know what it is its the change to allow you to move when you click we are generating a very small move when we select and its racing to the back end with the wrong selected zone I can fix this tomorrow but it's just a micro-drag when you click moving something by zero at the same time you select it and sending the wrong zone as being updated to the server. |
Yeah
that fires on a 'click to disappear' will find this now i know that. but not tonight. |
Nice hunting! |
In bd2b2e4 we made select start a drag event but this meant tiny mosue movements when selecting would send a drag event simultaneously with the select event on the wrong zone, making zones overlap. The correct fix for this is to wait for the new selected zone or update the view internally when selecting, so this is not a good solution long term, buit this fixes the bug in the interim. Addresses surge-synthesizer#1270
Yeah I have a temporary workaround (which is you have to drag at least 2 pixels from mouse down spot to start a move) which is going in now to make this less annoying immediately but I also know what the correct fix is (namely when you do a select you update the internal state before you send the message, basically - but that's trickier). |
In bd2b2e4 we made select start a drag event but this meant tiny mosue movements when selecting would send a drag event simultaneously with the select event on the wrong zone, making zones overlap. The correct fix for this is to wait for the new selected zone or update the view internally when selecting, so this is not a good solution long term, buit this fixes the bug in the interim. Addresses #1270
Fixes surge-synthesizer#1270 properly. Makes sure the internal state for selected lead zone is set *before* we message the server to avoid inconsistent messages. Kepp the drag window though just to be safe. Closes surge-synthesizer#1270
Make some empty zones. Click them one by one. Strange things happen
The text was updated successfully, but these errors were encountered: