зеркало из https://github.com/mozilla/gecko-dev.git
Bug 831198. Make _arrowScrollAnim.stop() and _scrollAnim.stop() actually cancel the pending requestAnimationFrame callback. r=dao
This commit is contained in:
Родитель
717ae8614e
Коммит
975927f557
|
@ -300,7 +300,7 @@
|
|||
if (pos == 1)
|
||||
this.scrollbox._stopSmoothScroll();
|
||||
else
|
||||
window.mozRequestAnimationFrame(this);
|
||||
this.requestHandle = window.mozRequestAnimationFrame(this);
|
||||
}
|
||||
})]]></field>
|
||||
|
||||
|
@ -663,7 +663,7 @@
|
|||
const scrollDelta = 0.5 * timePassed * scrollIndex;
|
||||
this.scrollbox.scrollPosition += scrollDelta;
|
||||
|
||||
window.mozRequestAnimationFrame(this);
|
||||
this.requestHandle = window.mozRequestAnimationFrame(this);
|
||||
}
|
||||
})]]></field>
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче