Optimize to collect "not dragged" tabs
This commit is contained in:
parent
da462ef098
commit
b38c6f8066
@ -267,9 +267,9 @@ catch(e) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
let draggedTab = aEvent.dataTransfer && aEvent.dataTransfer.mozGetDataAt(TAB_DROP_TYPE, 0);
|
let draggedTab = aEvent.dataTransfer && aEvent.dataTransfer.mozGetDataAt(TAB_DROP_TYPE, 0);
|
||||||
let (draggedTabs = this.getDraggedTabsInfoFromOneTab(draggedTab).draggedTabs) {
|
if (draggedTab._dragData) {
|
||||||
let tabs = sv.getTabs(b).filter(function(aTab) {
|
let tabs = sv.getTabs(b).filter(function(aTab) {
|
||||||
return draggedTabs.indexOf(aTab) < 0;
|
return !aTab._dragData;
|
||||||
});
|
});
|
||||||
tab = sv.getTabFromCoordinate(aEvent[sv.screenPositionProp], tabs) ||
|
tab = sv.getTabFromCoordinate(aEvent[sv.screenPositionProp], tabs) ||
|
||||||
sv.getTabFromCoordinate(aEvent[sv.screenPositionProp]);
|
sv.getTabFromCoordinate(aEvent[sv.screenPositionProp]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user