mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
remove useless scope.$apply in pdf scrollhandler
This commit is contained in:
parent
721843695b
commit
53e9086094
1 changed files with 2 additions and 2 deletions
|
@ -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) ->
|
||||
|
|
Loading…
Reference in a new issue