зеркало из https://github.com/mozilla/pjs.git
Bug 460769 - arrowscrollbox destruction should cancel smooth scrolling. r=enndeakin
This commit is contained in:
Родитель
cef4a27b64
Коммит
37719af365
|
@ -42,6 +42,10 @@
|
||||||
</content>
|
</content>
|
||||||
|
|
||||||
<implementation>
|
<implementation>
|
||||||
|
<destructor><![CDATA[
|
||||||
|
this._stopSmoothScroll();
|
||||||
|
]]></destructor>
|
||||||
|
|
||||||
<field name="_scrollbox">
|
<field name="_scrollbox">
|
||||||
document.getAnonymousElementByAttribute(this, "anonid", "scrollbox");
|
document.getAnonymousElementByAttribute(this, "anonid", "scrollbox");
|
||||||
</field>
|
</field>
|
||||||
|
@ -303,8 +307,10 @@
|
||||||
|
|
||||||
<method name="_stopSmoothScroll">
|
<method name="_stopSmoothScroll">
|
||||||
<body><![CDATA[
|
<body><![CDATA[
|
||||||
clearInterval(this._smoothScrollTimer);
|
if (this._isScrolling) {
|
||||||
this._isScrolling = 0;
|
clearInterval(this._smoothScrollTimer);
|
||||||
|
this._isScrolling = 0;
|
||||||
|
}
|
||||||
]]></body>
|
]]></body>
|
||||||
</method>
|
</method>
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче