mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backed out changeset 75147c0a4b89 because it actually changes code, and is not test-only. a=silly-me
This commit is contained in:
parent
fdec1bfb82
commit
b65c6cf4d4
@ -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…
Reference in New Issue
Block a user