to feedback actual behavior, select dragged tabs automatically if MTH is installed

This commit is contained in:
SHIMODA Hiroshi 2010-12-20 15:46:38 +09:00
parent 97f0875298
commit a1b73fb9a2

View File

@ -691,7 +691,22 @@ catch(e) {
event : aEvent
};
var tabsInfo = this.getDraggedTabsInfoFromOneTab(actionInfo, aTab);
if (tabsInfo.draggedTabs.length > 1)
if (tabsInfo.draggedTabs.length <= 1)
return;
if (
'MultipleTabService' in w &&
'isSelected' in w.MultipleTabService &&
'setSelection' in w.MultipleTabService &&
'clearSelection' in w.MultipleTabService &&
!w.MultipleTabService.isSelected(aTab)
) {
w.MultipleTabService.clearSelection(sv.browser);
tabsInfo.draggedTabs.forEach(function(aTab) {
w.MultipleTabService.setSelection(aTab, true);
});
}
w['piro.sakura.ne.jp'].tabsDragUtils.startTabsDrag(aEvent, tabsInfo.draggedTabs);
},