-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Sets the pdf scale after page render rather than on resize (#178)
- Waits for the page to be fully rendered before updating the annotations scale. This ensures that the annotations listeners are on top of the document and it's associated listeners. - Fixes issue where the first device orientation change would result in some listeners being hidden underneath the document listeners, resulting in point annotations not triggering on mobile. - renderAnnotationsOnPage is triggered on the 'pagerender' event based on which pages have been rendered - If no specific page has been rendered (or is an image file), renders all annotations on the file
- Loading branch information
Showing
5 changed files
with
42 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters