ポップアップメニュー上でのドラッグ操作ではタブバーのドラッグを開始しないように

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@5068 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2009-09-03 08:24:22 +00:00
parent 20a7610a06
commit 8a6bcc8ac6

View File

@ -29,6 +29,14 @@ TreeStyleTabBrowserTabbarDNDObserver.prototype = {
canDragTabbar : function(aEvent) canDragTabbar : function(aEvent)
{ {
var sv = this.mOwner; var sv = this.mOwner;
if (sv.evaluateXPath(
'ancestor::*[local-name()="menupopup" or local-name()="popup" or local-name()="panel"]',
aEvent.originalTarget,
XPathResult.BOOLEAN_TYPE
).booleanValue)
return false;
var tab = sv.getTabFromEvent(aEvent); var tab = sv.getTabFromEvent(aEvent);
var tabbar = sv.getTabbarFromEvent(aEvent); var tabbar = sv.getTabbarFromEvent(aEvent);
return ( return (