mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-25 19:34:04 +00:00
use setTimeout instead of $timeout in pdf scrollhandler
This commit is contained in:
parent
591498a056
commit
441bc63935
1 changed files with 2 additions and 2 deletions
|
@ -359,8 +359,8 @@ define [
|
||||||
return
|
return
|
||||||
#scope.scrolled = true
|
#scope.scrolled = true
|
||||||
if scope.scrollHandlerTimeout
|
if scope.scrollHandlerTimeout
|
||||||
$timeout.cancel(scope.scrollHandlerTimeout)
|
clearTimeout(scope.scrollHandlerTimeout)
|
||||||
scope.scrollHandlerTimeout = $timeout scrollHandler, 25
|
scope.scrollHandlerTimeout = setTimeout scrollHandler, 25
|
||||||
|
|
||||||
scrollHandler = () ->
|
scrollHandler = () ->
|
||||||
renderVisiblePages()
|
renderVisiblePages()
|
||||||
|
|
Loading…
Reference in a new issue