This fixes the undesired reordering of the favorites which could happen when dragging an item to desktop by restoring the order of favorites when the cursor leaves Kickoff.
BUG: 385856
FIXED-IN: 5.17.0
Lint Skipped |
Unit Tests Skipped |
I was reluctant to introduce a new variable with such a broad scope (kickoff.dragStartRow) but using the startRow from DropArea would sometimes still mess up the order - startRow would be set to whatever new current index every time the user moved the cursor back inside DropArea, so it would be snapping back to the wrong position. It's not really something a user would commonly do, so I can edit the code to use it instead. Otherwise, startRow wasn't used anywhere so I removed it completely.