mirror of
https://github.com/overleaf/overleaf.git
synced 2024-09-16 02:52:31 -04: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 = () ->
|
scrollHandler = () ->
|
||||||
renderVisiblePages()
|
renderVisiblePages()
|
||||||
scope.$apply()
|
#scope.$apply()
|
||||||
newPosition = ctrl.getPdfPosition()
|
newPosition = ctrl.getPdfPosition()
|
||||||
if newPosition?
|
if newPosition?
|
||||||
scope.position = newPosition
|
scope.position = newPosition
|
||||||
scope.$apply()
|
#scope.$apply()
|
||||||
scope.scrollHandlerTimeout = null
|
scope.scrollHandlerTimeout = null
|
||||||
|
|
||||||
scope.$watch 'pdfSrc', (newVal, oldVal) ->
|
scope.$watch 'pdfSrc', (newVal, oldVal) ->
|
||||||
|
|
Loading…
Reference in a new issue