mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
flash the pdf controls in pdfng
This commit is contained in:
parent
863c8b9586
commit
2a66651ec9
2 changed files with 4 additions and 0 deletions
|
@ -71,6 +71,9 @@ define [
|
|||
scope.$on 'pdfDoubleClick', (event, e) ->
|
||||
scope.dblClickCallback?(page: e.page - 1, offset: { top: e.y, left: e.x })
|
||||
|
||||
scope.$on 'flash-controls', () ->
|
||||
flashControls()
|
||||
|
||||
scope.$watch "pdfSrc", (url) ->
|
||||
if url
|
||||
scope.loading = true
|
||||
|
|
|
@ -262,6 +262,7 @@ define [
|
|||
element.innerHeight(),
|
||||
element.innerWidth()
|
||||
]
|
||||
scope.$emit 'flash-controls'
|
||||
#scope.$apply()
|
||||
|
||||
scope.$on 'layout:main:resize', () ->
|
||||
|
|
Loading…
Reference in a new issue