소스 검색

remove useless scope.$apply in pdf scrollhandler

Brian 11 년 전
부모
커밋
53e9086094
1개의 변경된 파일과 2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      services/web/public/coffee/ide/pdfng/directives/pdfViewer.coffee

+ 2 - 2
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) ->