mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-24 18:12:02 +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
|
||||
#scope.scrolled = true
|
||||
if scope.scrollHandlerTimeout
|
||||
$timeout.cancel(scope.scrollHandlerTimeout)
|
||||
scope.scrollHandlerTimeout = $timeout scrollHandler, 25
|
||||
clearTimeout(scope.scrollHandlerTimeout)
|
||||
scope.scrollHandlerTimeout = setTimeout scrollHandler, 25
|
||||
|
||||
scrollHandler = () ->
|
||||
renderVisiblePages()
|
||||
|
|
Loading…
Reference in a new issue