eclipse-theia/theia

Half-Hidden tab getting close while not clicking on close button

Open

#8,431 opened on 2020年8月25日

GitHub で見る
 (1 comment) (0 reactions) (0 assignees)TypeScript (18,676 stars) (2,478 forks)batch import
bughelp wantedui/ux

説明

Bug Description:

When you are clicking at the right most part of a half-hidden tab, the tab in question gets closed (Zone highlighted in red) : image

Steps to Reproduce:

  1. Open many files
  2. Scroll your tabs to have on tab half hidden to the right of the tabbar
  3. click on the right most part of the tab

Additional Information

This error comes from PhosphorJS which is now abandonned as discussed in this thread : https://github.com/eclipse-theia/theia/issues/6501 In phosphorJS tabbar when the mousedown event is received, the tab that is clicked becomes the default one, so the tabbar gets centered on this tab. In the mouse up event, there is a check if the click was made on the close icon. This check returns true because now the tabbar was recentered on the tab clicked and so the click calls the close tab. I checked with VSCode and in this case, the tab only gets selected : not closed

  • Operating System: Any
  • Theia Version: Latest

コントリビューターガイド

Half-Hidden tab getting close while not clicking on close button · eclipse-theia/theia#8431 | Good First Issue