mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-04 22:59:01 +02:00
flash the pdf controls in pdfng
This commit is contained in:
@@ -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', () ->
|
||||
|
||||
Reference in New Issue
Block a user