Skip to content

Conversation

@zed-zippy
Copy link
Contributor

@zed-zippy zed-zippy bot commented Jan 15, 2026

Cherry-pick of #46872 to preview


Closes #46864
Initial PR: #46573

Summary

Fix a regression where dragging a tab onto another tab would place it at
the end of the tab bar instead of at the target position.

The issue was in the on_drop handler: it used this.items.len()
(evaluated at drop time) instead of the captured ix index (the
position of the tab being dropped onto).

Release Notes:

  • Fixed tab reordering not working correctly when dragging tabs

Video after fix:

  • when 'show_pinned_tabs_in_separate_row' is false:
Screen.Recording.2026-01-15.at.09.29.38.mov
  • when 'show_pinned_tabs_in_separate_row' is true:
Screen.Recording.2026-01-15.at.09.30.18.mov

Co-authored-by: Smit Barmase heysmitbarmase@gmail.com

Closes [#46864](#46864)
Initial PR: #46573

## Summary

Fix a regression where dragging a tab onto another tab would place it at
the end of the tab bar instead of at the target position.

The issue was in the `on_drop` handler: it used `this.items.len()`
(evaluated at drop time) instead of the captured `ix` index (the
position of the tab being dropped onto).

Release Notes:

- Fixed tab reordering not working correctly when dragging tabs

## Video after fix:

- when 'show_pinned_tabs_in_separate_row' is false:


https://github.com/user-attachments/assets/1ede0ce5-1161-4209-83f4-33a07572782a

- when 'show_pinned_tabs_in_separate_row' is true:


https://github.com/user-attachments/assets/d56c0e59-8372-41d4-973b-32a4895ca729

---------

Co-authored-by: Smit Barmase <heysmitbarmase@gmail.com>
@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Jan 15, 2026
@zed-zippy zed-zippy bot merged commit 203f55e into v0.220.x Jan 15, 2026
24 checks passed
@zed-zippy zed-zippy bot deleted the cherry-pick-v0.220.x-b8c5f672 branch January 15, 2026 09:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement

1 participant