From efca844cf57d32c0f07a5bf40370f191d00c6b6d Mon Sep 17 00:00:00 2001 From: SHIMODA Hiroshi Date: Mon, 20 Dec 2010 16:24:47 +0900 Subject: [PATCH] don't select dragged tabs --- modules/tabbarDNDObserver.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/modules/tabbarDNDObserver.js b/modules/tabbarDNDObserver.js index d2df629c..9d2bf9dc 100644 --- a/modules/tabbarDNDObserver.js +++ b/modules/tabbarDNDObserver.js @@ -694,18 +694,24 @@ catch(e) { if (tabsInfo.draggedTabs.length <= 1) return; +/* if ( 'MultipleTabService' in w && 'isSelected' in w.MultipleTabService && - 'setSelection' in w.MultipleTabService && + 'getSelectedTabs' in w.MultipleTabService && 'clearSelection' in w.MultipleTabService && - !w.MultipleTabService.isSelected(aTab) + 'setSelection' in w.MultipleTabService && + ( + !w.MultipleTabService.isSelected(aTab) || + w.MultipleTabService.getSelectedTabs(sv.browser) == [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); },