use setTimeout instead of $timeout in pdf scrollhandler

This commit is contained in:
Brian Gough 2015-01-20 16:20:38 +00:00
parent 591498a056
commit 441bc63935

View file

@ -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()