mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
A couple of small (viewer) tweaks of tooltip-only Annotations (PR 12333 follow-up)
Ensure that these tooltip-only Annotations are handled as "internalLink"s, to ensure that they behave as expected in PresentationMode (e.g. they should still use a `pointer`-cursor). Ensure that `PDFLinkService.getDestinationHash` won't create links with empty hashes, since those don't really make a lot of sense in general (this improves things for tooltip-only Annotations). This PDF file can be used for testing: http://mirrors.ctan.org/macros/latex/contrib/pdfcomment/doc/pdfcomment.pdf#page=14
This commit is contained in:
parent
1eaf9c961b
commit
9f8d9802f9
2 changed files with 9 additions and 6 deletions
|
@ -348,7 +348,7 @@ class LinkAnnotationElement extends AnnotationElement {
|
|||
}
|
||||
return false;
|
||||
};
|
||||
if (destination) {
|
||||
if (destination || destination === /* isTooltipOnly = */ "") {
|
||||
link.className = "internalLink";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue