Backed out changeset 75147c0a4b89 because it actually changes code, and is not test-only. a=silly-me

This commit is contained in:
Ehsan Akhgari 2011-03-16 18:03:35 -04:00
parent fdec1bfb82
commit b65c6cf4d4

View File

@ -247,7 +247,8 @@
this._stopSmoothScroll();
if (aSmoothScroll != false && this.smoothScroll) {
this._smoothScrollByPixels(amountToScroll, element);
this._scrollTarget = element;
this._smoothScrollByPixels(amountToScroll);
} else {
this.scrollByPixels(amountToScroll);
}
@ -256,13 +257,12 @@
<method name="_smoothScrollByPixels">
<parameter name="amountToScroll"/>
<parameter name="element"/><!-- optional -->
<body><![CDATA[
this._stopSmoothScroll();
if (amountToScroll == 0)
return;
this._scrollTarget = element;
this._stopSmoothScroll();
// Positive amountToScroll makes us scroll right (elements fly left), negative scrolls left.
this._isScrolling = amountToScroll < 0 ? -1 : 1;