Refactor Presentation Mode code

This commit is contained in:
Jonas Jenwald 2013-10-06 20:05:13 +02:00
parent e2f44361f5
commit d795c8ec14
2 changed files with 56 additions and 58 deletions

View file

@ -147,6 +147,10 @@ var PDFView = {
passwordCancel: document.getElementById('passwordCancel')
});
PresentationMode.initialize({
container: container
});
this.initialized = true;
container.addEventListener('scroll', function() {
self.lastScroll = Date.now();