Reland "Fix selection jumping around when removing multiple items in cr-list."
This is a reland of fa8a5d39 Original change's description: > 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/1345709 > Reviewed-by: calamity <calamity@chromium.org> > Commit-Queue: Sam McNally <sammc@chromium.org> > Cr-Commit-Position: refs/heads/master@{#610019} Bug: 708299 Tbr: calamity@chromium.org Change-Id: I4de9726b919f88a1efe98f036687de07b23715c2 Reviewed-on: https://chromium-review.googlesource.com/c/1347630Reviewed-by:Sam McNally <sammc@chromium.org> Commit-Queue: Sam McNally <sammc@chromium.org> Cr-Commit-Position: refs/heads/master@{#610358}
Showing
Please register or sign in to comment