diff --git a/services/web/public/coffee/ide/pdfng/directives/pdfViewer.coffee b/services/web/public/coffee/ide/pdfng/directives/pdfViewer.coffee index b36d96c1bf..aa90b11a50 100644 --- a/services/web/public/coffee/ide/pdfng/directives/pdfViewer.coffee +++ b/services/web/public/coffee/ide/pdfng/directives/pdfViewer.coffee @@ -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()