Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tab bar should not scroll horizontally after closing a tab #74871

Closed
redtopia opened this issue Jun 5, 2019 · 2 comments
Closed

Tab bar should not scroll horizontally after closing a tab #74871

redtopia opened this issue Jun 5, 2019 · 2 comments
Labels
feature-request Request for new features or functionality *out-of-scope Posted issue is not in scope of VS Code workbench-tabs VS Code editor tab issues

Comments

@redtopia
Copy link

redtopia commented Jun 5, 2019

When closing an active tab with a mouse click, the tab bar will scroll horizontally when the newly active tab is not in view. This behavior can cause a workflow problem when your goal is to close multiple tabs in the same general location in the tab bar, and one of the tabs you want to close is the active editor.

  • VSCode Version: 1.34
  • OS Version: Win10

Steps to Reproduce:

  1. Open a bunch of tabs so that the tab bar is scrollable, and there are multiple tabs to the far right that are not visible
  2. Make the first tab (on the left) the active editor
  3. Scroll the tab bar to the far right, causing the currently active tab (far left) to be scrolled out of view
  4. Make the far right tab the active editor by clicking on the tab
  5. Now close the far right tab (which is active)
  6. The tab bar will scroll back to the far left to reveal the new currently active tab, which was the previously active editor. You will no longer see the tabs that you intend to close (on the right), forcing you to scroll to the right again.

This problem becomes compounded when you are reorganizing and closing multiple tabs as part of your workflow because changing the location of a tab makes it active, which affects the z-order of the editors.

In my opinion, the tab bar should not change it's horizontal scroll position when closing a tab via a mouse click in the tab bar, even if the next currently active editor's tab is not in view. Or perhaps delay the scroll action until the mouse is moved out of the tab bar.

Does this issue occur when all extensions are disabled?: Yes

@bpasero bpasero added feature-request Request for new features or functionality workbench-tabs VS Code editor tab issues labels Jun 5, 2019
@bpasero bpasero removed their assignment Jun 5, 2019
@bpasero bpasero changed the title Tab bar scrolls horizontally after closing a tab Tab bar should not scroll horizontally after closing a tab Jun 5, 2019
@vscodebot vscodebot bot added the *out-of-scope Posted issue is not in scope of VS Code label Oct 14, 2019
@vscodebot
Copy link

vscodebot bot commented Oct 14, 2019

This issue is being closed to keep the number of issues in our inbox on a manageable level, we are closing issues that are not going to be addressed in the foreseeable future: We look at the number of votes the issue has received and the number of duplicate issues filed. More details here. If you disagree and feel that this issue is crucial: We are happy to listen and to reconsider.

If you wonder what we are up to, please see our roadmap and issue reporting guidelines.

Thanks for your understanding and happy coding!

@vscodebot vscodebot bot closed this as completed Oct 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for new features or functionality *out-of-scope Posted issue is not in scope of VS Code workbench-tabs VS Code editor tab issues
Projects
None yet
Development

No branches or pull requests

2 participants