スクロール速度を落とした

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@4051 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2009-04-06 17:52:10 +00:00
parent a9d5dbfcf0
commit 850d52b665

View File

@ -2586,9 +2586,10 @@ TreeStyleTabBrowser.prototype = {
if (tabs.getAttribute('overflow') != 'true') return false; if (tabs.getAttribute('overflow') != 'true') return false;
var tabStrip = tabs.mTabstrip; var tabStrip = tabs.mTabstrip;
var pixels = tabStrip.scrollIncrement;
var box = tabs.boxObject; var box = tabs.boxObject;
var pixels;
if (this.isVertical) { if (this.isVertical) {
pixels = tabs.childNodes[0].boxObject.height * 0.5;
if (aEvent.screenY < box.screenY + this.autoScrollArea) { if (aEvent.screenY < box.screenY + this.autoScrollArea) {
pixels *= -1; pixels *= -1;
} }
@ -2597,6 +2598,7 @@ TreeStyleTabBrowser.prototype = {
} }
} }
else { else {
pixels = tabStrip.scrollIncrement;
var ltr = window.getComputedStyle(this.parentNode, null).direction == 'ltr'; var ltr = window.getComputedStyle(this.parentNode, null).direction == 'ltr';
if (aEvent.screenX < box.screenX + this.autoScrollArea) { if (aEvent.screenX < box.screenX + this.autoScrollArea) {
pixels *= -1; pixels *= -1;