Skip to content

Commit

Permalink
Fix rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
krassowski committed Aug 3, 2022
1 parent 9345a61 commit 072a670
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions packages/widgets/src/tabbar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1070,24 +1070,6 @@ export class TabBar<T> extends Widget {
detachRequested: false
};

// Add the document pointer up listener.
this.document.addEventListener('pointerup', this, true);

// Do nothing else if the middle button or add button is clicked.
if (event.button === 1 || addButtonClicked) {
return;
}
if (scrollBeforeButtonClicked || scrollAfterButtonClicked) {
this.beginScrolling(scrollBeforeButtonClicked ? '-' : '+');
return;
}

// Do nothing else if the close icon is clicked.
let icon = tabs[index].querySelector(this.renderer.closeIconSelector);
if (icon && icon.contains(event.target as HTMLElement)) {
return;
}

// Add the extra listeners if the tabs are movable.
if (this.tabsMovable) {
this.document.addEventListener('pointermove', this, true);
Expand Down

0 comments on commit 072a670

Please sign in to comment.