Skip to content

Commit

Permalink
Don't use light tree
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Feb 6, 2024
1 parent cb3d36b commit 3e07792
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion webextensions/background/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ async function registerToTST() {
icons: browser.runtime.getManifest().icons,
listeningTypes,
allowBulkMessaging: true,
lightTree: true,
lightTree: false, // We need to use "index". We can listen full tree item because lisning events are limited.
style: `
.tab.${Constants.kSELECTED}::after,
.tab.${Constants.kREADY_TO_SELECT}::after {
Expand Down
1 change: 1 addition & 0 deletions webextensions/common/drag-selection.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ export default class DragSelection {
endTabsMap.set(endTabs.id, endTabs);
endTabs = endTabsMap;
}
log('getTabsBetween ', { beginningTabs, endTabs, includeHidden });
if (Array.from(endTabs.keys()).sort().join(',') == Array.from(beginningTabs.keys()).sort().join(','))
return [];
beginningTabs = Array.from(beginningTabs.values());
Expand Down

0 comments on commit 3e07792

Please sign in to comment.