mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-18 14:56:07 +00:00
Backed out changeset 75147c0a4b89 because it actually changes code, and is not test-only. a=silly-me
This commit is contained in:
parent
79224d86b2
commit
c07982a406
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user