From 53e9086094d9d3a5c43175b8eefa2cbca8ea40cf Mon Sep 17 00:00:00 2001 From: Brian Date: Tue, 20 Jan 2015 15:37:11 +0000 Subject: [PATCH] remove useless scope.$apply 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 6d2fbdd621..1fef6962af 100644 --- a/services/web/public/coffee/ide/pdfng/directives/pdfViewer.coffee +++ b/services/web/public/coffee/ide/pdfng/directives/pdfViewer.coffee @@ -364,11 +364,11 @@ define [ scrollHandler = () -> renderVisiblePages() - scope.$apply() + #scope.$apply() newPosition = ctrl.getPdfPosition() if newPosition? scope.position = newPosition - scope.$apply() + #scope.$apply() scope.scrollHandlerTimeout = null scope.$watch 'pdfSrc', (newVal, oldVal) ->