eclipse-theia/theia
View on GitHubHalf-Hidden tab getting close while not clicking on close button
Open
#8,431 opened on Aug 25, 2020
bughelp wantedui/ux
Description
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) :

Steps to Reproduce:
- Open many files
- Scroll your tabs to have on tab half hidden to the right of the tabbar
- 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