File tree 1 file changed +0
-18
lines changed
1 file changed +0
-18
lines changed Original file line number Diff line number Diff line change @@ -1070,24 +1070,6 @@ export class TabBar<T> extends Widget {
1070
1070
detachRequested : false
1071
1071
} ;
1072
1072
1073
- // Add the document pointer up listener.
1074
- this . document . addEventListener ( 'pointerup' , this , true ) ;
1075
-
1076
- // Do nothing else if the middle button or add button is clicked.
1077
- if ( event . button === 1 || addButtonClicked ) {
1078
- return ;
1079
- }
1080
- if ( scrollBeforeButtonClicked || scrollAfterButtonClicked ) {
1081
- this . beginScrolling ( scrollBeforeButtonClicked ? '-' : '+' ) ;
1082
- return ;
1083
- }
1084
-
1085
- // Do nothing else if the close icon is clicked.
1086
- let icon = tabs [ index ] . querySelector ( this . renderer . closeIconSelector ) ;
1087
- if ( icon && icon . contains ( event . target as HTMLElement ) ) {
1088
- return ;
1089
- }
1090
-
1091
1073
// Add the extra listeners if the tabs are movable.
1092
1074
if ( this . tabsMovable ) {
1093
1075
this . document . addEventListener ( 'pointermove' , this , true ) ;
You can’t perform that action at this time.
0 commit comments