From d5afbebd8c2fdec863944fc726e2aba44ae32e8c Mon Sep 17 00:00:00 2001 From: Piro / SHIMODA Hiroshi Date: Fri, 3 Dec 2010 02:38:15 +0900 Subject: [PATCH] Drag and drop actions from non-tab elements aren't handled by TST. As the result, Firefox's native handler handles the event, so default drop indicator is unexpectedly processed. ( http://piro.sakura.ne.jp/cgi-bin/bbs.cgi?2798 ) --- .../treestyletab/treestyletabbrowser_tabbarDNDObserver.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/content/treestyletab/treestyletabbrowser_tabbarDNDObserver.js b/content/treestyletab/treestyletabbrowser_tabbarDNDObserver.js index 4bedb515..98d67bd4 100644 --- a/content/treestyletab/treestyletabbrowser_tabbarDNDObserver.js +++ b/content/treestyletab/treestyletabbrowser_tabbarDNDObserver.js @@ -816,10 +816,7 @@ try{ var b = sv.mTabBrowser; var session = sv.currentDragSession; - if ( - sv.isToolbarCustomizing || - !sv.getTabFromChild(session.sourceNode) - ) + if (sv.isToolbarCustomizing) return false; sv.autoScroll.processAutoScroll(aEvent); @@ -853,7 +850,7 @@ try{ observer._dragTime = time; } if (now >= time + delay) - aTabBrowser.selectedTab = info.target; + b.selectedTab = info.target; } }