Remove needless event handler for wheel scrolling on the tab bar

This commit is contained in:
YUKI Hiroshi 2015-03-17 17:49:39 +09:00
parent 0d1973ced9
commit ec76dd9c04

View File

@ -1642,7 +1642,6 @@ TreeStyleTabBrowser.prototype = inherit(TreeStyleTabWindow.prototype, {
strip.addEventListener('MozMouseHittest', this, true); // to block default behaviors of the tab bar
strip.addEventListener('mousedown', this, true);
strip.addEventListener('click', this, true);
strip.addEventListener('DOMMouseScroll', this, true);
this.scrollBox.addEventListener('overflow', this, true);
this.scrollBox.addEventListener('underflow', this, true);
@ -2368,7 +2367,6 @@ TreeStyleTabBrowser.prototype = inherit(TreeStyleTabWindow.prototype, {
strip.removeEventListener('MozMouseHittest', this, true);
strip.removeEventListener('mousedown', this, true);
strip.removeEventListener('click', this, true);
strip.removeEventListener('DOMMouseScroll', this, true);
this.scrollBox.removeEventListener('overflow', this, true);
this.scrollBox.removeEventListener('underflow', this, true);
@ -2850,9 +2848,6 @@ TreeStyleTabBrowser.prototype = inherit(TreeStyleTabWindow.prototype, {
case 'mousedown':
return this.onMouseDown(aEvent);
case 'DOMMouseScroll':
return this.onDOMMouseScroll(aEvent);
case 'scroll':
return this.onScroll(aEvent);
@ -4851,11 +4846,6 @@ TreeStyleTabBrowser.prototype = inherit(TreeStyleTabWindow.prototype, {
}
},
onDOMMouseScroll : function TSTBrowser_onDOMMouseScroll(aEvent)
{
this.cancelPerformingAutoScroll();
},
onScroll : function TSTBrowser_onScroll(aEvent)
{
// restore scroll position when a tab is closed.