mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 01:58:06 +02:00
Prevent the annotationLayer to be recreated when the page is redrawn
This allows interactive annotations to keep their states after a resize
This commit is contained in:
parent
3940dc5a41
commit
7a4543e348
2 changed files with 87 additions and 54 deletions
|
@ -129,6 +129,7 @@ var Annotation = (function AnnotationClosure() {
|
|||
|
||||
this.appearance = getDefaultAppearance(dict);
|
||||
data.hasAppearance = !!this.appearance;
|
||||
data.id = params.ref.num;
|
||||
}
|
||||
|
||||
Annotation.prototype = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue