Bug 831198. Make _arrowScrollAnim.stop() and _scrollAnim.stop() actually cancel the pending requestAnimationFrame callback. r=dao

This commit is contained in:
Boris Zbarsky 2013-01-17 12:30:36 -05:00
Родитель 717ae8614e
Коммит 975927f557
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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>