無駄な条件分岐を削除
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@5066 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
dd13197c26
commit
65eabd7a90
@ -1983,17 +1983,14 @@ TreeStyleTabBrowser.prototype = {
|
||||
|
||||
onScroll : function(aEvent)
|
||||
{
|
||||
var node = aEvent.originalTarget;
|
||||
if (node && node.ownerDocument == document) {
|
||||
if (this.lastScrollX < 0 || this.lastScrollY < 0) return;
|
||||
var x = {}, y = {};
|
||||
var scrollBoxObject = this.scrollBoxObject;
|
||||
scrollBoxObject.getPosition(x, y);
|
||||
if (x.value != this.lastScrollX || y.value != this.lastScrollY)
|
||||
scrollBoxObject.scrollTo(this.lastScrollX, this.lastScrollY);
|
||||
this.lastScrollX = -1;
|
||||
this.lastScrollY = -1;
|
||||
}
|
||||
if (this.lastScrollX < 0 || this.lastScrollY < 0) return;
|
||||
var x = {}, y = {};
|
||||
var scrollBoxObject = this.scrollBoxObject;
|
||||
scrollBoxObject.getPosition(x, y);
|
||||
if (x.value != this.lastScrollX || y.value != this.lastScrollY)
|
||||
scrollBoxObject.scrollTo(this.lastScrollX, this.lastScrollY);
|
||||
this.lastScrollX = -1;
|
||||
this.lastScrollY = -1;
|
||||
},
|
||||
|
||||
onTabbarOverflow : function(aEvent)
|
||||
|
Loading…
Reference in New Issue
Block a user