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