Fix selection jumping around when removing multiple items in cr-list.
Previously, when the selected item is removed, the selection is changed to the index after where the old lead index was. When multiple items are removed, the logical next item may move multiple positions. Avoid this by moving to the item that hasn't been removed from prior to the permutation - using its position after the permutation. Bug: 708299 Change-Id: I9393c9f00d5453ef3c3d5378758bb63ed29c43b7 Reviewed-on: https://chromium-review.googlesource.com/c/1345709Reviewed-by:calamity <calamity@chromium.org> Commit-Queue: Sam McNally <sammc@chromium.org> Cr-Commit-Position: refs/heads/master@{#610019}
Showing
Please register or sign in to comment