the tooltip on a tab was wrongly shown with the text for the twisty even if the event is fired not on the twisty
This commit is contained in:
parent
8a3da1b839
commit
61df6c5c8a
@ -380,7 +380,6 @@ TreeStyleTabBrowser.prototype = {
|
|||||||
if (!this.isFloating && 'tabutils' in window)
|
if (!this.isFloating && 'tabutils' in window)
|
||||||
tabContainer.addEventListener('DOMAttrModified', this, true); // Tab Utilities
|
tabContainer.addEventListener('DOMAttrModified', this, true); // Tab Utilities
|
||||||
tabContainer.addEventListener('mouseover', this, true);
|
tabContainer.addEventListener('mouseover', this, true);
|
||||||
tabContainer.addEventListener('mouseout', this, true);
|
|
||||||
tabContainer.addEventListener('dblclick', this, true);
|
tabContainer.addEventListener('dblclick', this, true);
|
||||||
tabContainer.addEventListener('select', this, true);
|
tabContainer.addEventListener('select', this, true);
|
||||||
tabContainer.addEventListener('scroll', this, true);
|
tabContainer.addEventListener('scroll', this, true);
|
||||||
@ -1543,7 +1542,6 @@ TreeStyleTabBrowser.prototype = {
|
|||||||
if (!this.isFloating && 'tabutils' in window)
|
if (!this.isFloating && 'tabutils' in window)
|
||||||
b.mTabContainer.removeEventListener('DOMAttrModified', this, true); // Tab Utilites
|
b.mTabContainer.removeEventListener('DOMAttrModified', this, true); // Tab Utilites
|
||||||
tabContainer.removeEventListener('mouseover', this, true);
|
tabContainer.removeEventListener('mouseover', this, true);
|
||||||
tabContainer.removeEventListener('mouseout', this, true);
|
|
||||||
tabContainer.removeEventListener('dblclick', this, true);
|
tabContainer.removeEventListener('dblclick', this, true);
|
||||||
tabContainer.removeEventListener('select', this, true);
|
tabContainer.removeEventListener('select', this, true);
|
||||||
tabContainer.removeEventListener('scroll', this, true);
|
tabContainer.removeEventListener('scroll', this, true);
|
||||||
@ -1938,15 +1936,17 @@ TreeStyleTabBrowser.prototype = {
|
|||||||
case 'popupshowing':
|
case 'popupshowing':
|
||||||
return this.onPopupShowing(aEvent)
|
return this.onPopupShowing(aEvent)
|
||||||
|
|
||||||
|
|
||||||
case 'mouseover':
|
case 'mouseover':
|
||||||
|
let (tab = aEvent.target) {
|
||||||
|
if (tab.__treestyletab__twistyHoverTimer)
|
||||||
|
window.clearTimeout(tab.__treestyletab__twistyHoverTimer);
|
||||||
if (this.isEventFiredOnTwisty(aEvent))
|
if (this.isEventFiredOnTwisty(aEvent))
|
||||||
aEvent.target.setAttribute(this.kTWISTY_HOVER, true);
|
tab.__treestyletab__twistyHoverTimer = window.setTimeout(function(aSelf) {
|
||||||
return;
|
tab.setAttribute(aSelf.kTWISTY_HOVER, true);
|
||||||
|
}, 0, this);
|
||||||
case 'mouseout':
|
else
|
||||||
if (this.isEventFiredOnTwisty(aEvent))
|
tab.removeAttribute(this.kTWISTY_HOVER);
|
||||||
aEvent.target.removeAttribute(this.kTWISTY_HOVER);
|
}
|
||||||
return;
|
return;
|
||||||
|
|
||||||
case 'overflow':
|
case 'overflow':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user