Autoplaced dynamics can shift on Alt+drag

• Jun 3, 2019 - 01:35
Reported version
3.1
Priority
P2 - Medium
Type
Functional
Frequency
Once
Severity
S4 - Minor
Reproducibility
Always
Status
active
Regression
No
Workaround
Yes
Project

Change the style for dynamics position below Y value from the default of 4.
Insert a dynamic
press alt while dragging it a little

Result: Dynamic jumps from its location depending upon what value is in the position below. The second time you drag the dynamic it stays where it belongs.

Expected: When the default position is not changed, dragging the dynamic leaves it where you drop it. When you drag a dynamic, it should stay in that spot regardless of the value entered in the position in styles.


Comments

Title Dynamics move on their own Autoplaced dynamics can shift on Alt+drag
Priority P2 - Medium

I can reproduce with your sample. The key seems to be that the dynamic needs to not "fit" using the style default and hence is autoplaced.

This is basically the same thing we always saw prior to 3.1, though, upon a normal (non-Alt) drag under similar circumstances. I went to some effort to make this sort of thing not happen for other elements that go through the generic autoplaceSegmentElement() functions, but dynamics do work a little differently. I would love to blame this on the code for automatically changing the anchor when dragging, and use this as an excuse to disable that, but unfortunately that seems not to be it.