From 441bc63935b8d091307d1796cbd6743363cbb6e1 Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Tue, 20 Jan 2015 16:20:38 +0000 Subject: [PATCH] use setTimeout instead of $timeout in pdf scrollhandler --- .../web/public/coffee/ide/pdfng/directives/pdfViewer.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()