flash the pdf controls in pdfng

This commit is contained in:
Brian Gough 2014-12-08 15:32:16 +00:00
parent 863c8b9586
commit 2a66651ec9
2 changed files with 4 additions and 0 deletions

View file

@ -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

View file

@ -262,6 +262,7 @@ define [
element.innerHeight(),
element.innerWidth()
]
scope.$emit 'flash-controls'
#scope.$apply()
scope.$on 'layout:main:resize', () ->