1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 07:08:08 +02:00

Replace clearTimeout by clearInterval, otherwise we could end up drawing the page in an infinite loop

This commit is contained in:
Vivien Nicolas 2011-06-17 23:39:17 +02:00
parent 21ee01eb7c
commit 9eae948c2e

View file

@ -50,8 +50,7 @@ function gotoPage(num) {
}
function displayPage(num) {
if (pageNum != num)
window.clearTimeout(pageInterval);
window.clearInterval(pageInterval);
document.getElementById("pageNumber").value = num;
@ -94,7 +93,7 @@ function displayPage(num) {
if (Fonts[font.name].loading)
return;
}
clearInterval(pageInterval);
window.clearInterval(pageInterval);
var t3 = Date.now();