From 183515d34247ad44e2d9194044ff66e9173d1b0d Mon Sep 17 00:00:00 2001 From: "mats.palmgren@bredband.net" Date: Tue, 21 Aug 2007 22:02:27 -0700 Subject: [PATCH] Improve overflow/underflow DOM event handling. b=365477 r+sr=roc --- browser/base/content/tabbrowser.xml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/browser/base/content/tabbrowser.xml b/browser/base/content/tabbrowser.xml index f95c39b5617..3fcf1be2a78 100644 --- a/browser/base/content/tabbrowser.xml +++ b/browser/base/content/tabbrowser.xml @@ -2547,6 +2547,11 @@ if (event.target != this) return; + // Ignore vertical events. + if (event.detail == 0) { + return; + } + this._scrollButtonDownBox.collapsed = true; this._scrollButtonDownBoxAnimate.collapsed = true; ]]> @@ -2556,6 +2561,11 @@ if (event.target != this) return; + // Ignore vertical events. + if (event.detail == 0) { + return; + } + this._scrollButtonDownBox.collapsed = false; this._scrollButtonDownBoxAnimate.collapsed = false; ]]>