From 850d52b6653f235740a3bae24d3ff1c3240aa9e0 Mon Sep 17 00:00:00 2001 From: piro Date: Mon, 6 Apr 2009 17:52:10 +0000 Subject: [PATCH] =?UTF-8?q?=E3=82=B9=E3=82=AF=E3=83=AD=E3=83=BC=E3=83=AB?= =?UTF-8?q?=E9=80=9F=E5=BA=A6=E3=82=92=E8=90=BD=E3=81=A8=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@4051 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/treestyletabbrowser.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/content/treestyletab/treestyletabbrowser.js b/content/treestyletab/treestyletabbrowser.js index 0820a4b0..0ea9bdee 100644 --- a/content/treestyletab/treestyletabbrowser.js +++ b/content/treestyletab/treestyletabbrowser.js @@ -2586,9 +2586,10 @@ TreeStyleTabBrowser.prototype = { if (tabs.getAttribute('overflow') != 'true') return false; var tabStrip = tabs.mTabstrip; - var pixels = tabStrip.scrollIncrement; var box = tabs.boxObject; + var pixels; if (this.isVertical) { + pixels = tabs.childNodes[0].boxObject.height * 0.5; if (aEvent.screenY < box.screenY + this.autoScrollArea) { pixels *= -1; } @@ -2597,6 +2598,7 @@ TreeStyleTabBrowser.prototype = { } } else { + pixels = tabStrip.scrollIncrement; var ltr = window.getComputedStyle(this.parentNode, null).direction == 'ltr'; if (aEvent.screenX < box.screenX + this.autoScrollArea) { pixels *= -1;