From ec76dd9c04e3bc9a083b5f32755de6390df7106a Mon Sep 17 00:00:00 2001 From: YUKI Hiroshi Date: Tue, 17 Mar 2015 17:49:39 +0900 Subject: [PATCH] Remove needless event handler for wheel scrolling on the tab bar --- modules/browser.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/modules/browser.js b/modules/browser.js index 62e64a89..288e28a2 100644 --- a/modules/browser.js +++ b/modules/browser.js @@ -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.