mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
use setTimeout instead of $timeout in pdf scrollhandler
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user