mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
remove the renderTimer
only display the page when it is fully rendered
This commit is contained in:
parent
70a82c10ce
commit
ad83784a81
1 changed files with 1 additions and 8 deletions
|
@ -226,11 +226,6 @@ define [
|
|||
navigateFn: @navigateFn
|
||||
})
|
||||
|
||||
renderTimer = setTimeout () ->
|
||||
renderTimer = null
|
||||
element.canvas.replaceWith(canvas)
|
||||
, 1000
|
||||
|
||||
# console.log 'staring page render', pagenum
|
||||
|
||||
result = page.render {
|
||||
|
@ -250,9 +245,7 @@ define [
|
|||
|
||||
result.then () ->
|
||||
# console.log 'page rendered', pagenum
|
||||
if renderTimer?
|
||||
element.canvas.replaceWith(canvas)
|
||||
clearTimeout renderTimer
|
||||
$timeout.cancel(timer)
|
||||
canvas.removeClass('pdfng-rendering')
|
||||
page.getTextContent().then (textContent) ->
|
||||
|
|
Loading…
Reference in a new issue