flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Mclean <justinmcl...@me.com>
Subject Re: [jira] [Created] (FLEX-34657) SelectedIndices order is messed up
Date Sat, 27 Dec 2014 22:53:41 GMT

From the JIRA:

> The order of the existing selected indices is reversed each time a item is selected or

This still occurs:
1. Select multiple items by holding down shift
2. Unselect and select the last selected item

Result: The indices is reversed each time you select or unselect an item.

And this also occurs:
1. Select the first item
2. Add additional items one by one going down the list (Order ends up being the rather strange
3. Unselect and select a single selected item

Result: The order of the selected indexes is reversed when you select or unselect a single

So the bug is not fixed.

That function uses splice in several locations (and also in other functions eg adjustSelectionAndCaretUponNavigation).Changing
in one place but not others seems risky and may lead to side effects.

Does anyone know the reason why splice is used and not push. Performance perhaps? Any there
any known issue with vectors and push?

View raw message