ポップアップメニュー上でのドラッグ操作ではタブバーのドラッグを開始しないように
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@5068 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
20a7610a06
commit
8a6bcc8ac6
@ -29,6 +29,14 @@ TreeStyleTabBrowserTabbarDNDObserver.prototype = {
|
||||
canDragTabbar : function(aEvent)
|
||||
{
|
||||
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 tabbar = sv.getTabbarFromEvent(aEvent);
|
||||
return (
|
||||
|
Loading…
Reference in New Issue
Block a user