mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-10 06:39:01 +02:00
remove useless scope.$apply in pdf scrollhandler
This commit is contained in:
@@ -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) ->
|
||||
|
||||
Reference in New Issue
Block a user