This commit is contained in:
Piro / YUKI Hiroshi 2016-09-05 01:06:36 +09:00
parent 23aeb5b243
commit 112edbf3cd

View File

@ -149,12 +149,12 @@ var TreeStyleTabWindowHelper = {
aObserver = aObserver.tabContainer; aObserver = aObserver.tabContainer;
aObserver.__treestyletab__getDropEffectForTabDrag = aObserver._getDropEffectForTabDrag; aObserver.__treestyletab__getDropEffectForTabDrag = aObserver._getDropEffectForTabDrag;
aObserver._getDropEffectForTabDrag = function(...aArgs) { aObserver._getDropEffectForTabDrag = function(aEvent, ...aArgs) {
var effects = aObserver.__treestyletab__getDropEffectForTabDrag.call(this, ...aArgs); var effects = aObserver.__treestyletab__getDropEffectForTabDrag(aEvent, ...aArgs);
if (effects === 'copy' || effects === 'move') { if (effects === 'copy' || effects === 'move') {
let TSTTabBrowser = this instanceof Element ? (this.tabbrowser || this) : gBrowser ; let TSTTabBrowser = this instanceof Element ? (this.tabbrowser || this) : gBrowser ;
var TST = TSTTabBrowser.treeStyleTab var TST = TSTTabBrowser.treeStyleTab
if (!TST.tabbarDNDObserver.canDropTab(aArgs[0])) if (!TST.tabbarDNDObserver.canDropTab(aEvent))
effects = 'none'; effects = 'none';
} }
return effects; return effects;