diff options
author | bobzel <zzzman@gmail.com> | 2024-04-24 14:56:48 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2024-04-24 14:56:48 -0400 |
commit | aa4f7b37483c516b92181d3374d3151972b98383 (patch) | |
tree | 042520fc1fad30c00e27c532a872b4129f29264d /src/fields/Doc.ts | |
parent | 9d69ab27de83ead3e499edc9028ba85749407a1e (diff) |
fixed search on pdfs to display results when pDF is not selected. fixed presentation transitions to animate. changed so that annotaitons on pdfs would highlight when following a pres slide. fixed scrolling to annotations (and other viewSpecs) from presentations by using the slide target, not the slide as the focus document. cleaned up search and fixed to unhighlight searches on close. fixe pdf search unhighligting to work.
Diffstat (limited to 'src/fields/Doc.ts')
-rw-r--r-- | src/fields/Doc.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/fields/Doc.ts b/src/fields/Doc.ts index 5028e1f8f..7b5e21ab7 100644 --- a/src/fields/Doc.ts +++ b/src/fields/Doc.ts @@ -1235,6 +1235,8 @@ export namespace Doc { // if doc is a layout template then we don't want to highlight the proto since that will be the entire template, not just the specific layout field highlightedDocs.add(doc[DocData]); doc[DocData][Highlight] = true; + // want to highlight the targets of presentation docs explicitly since following a pres target does not highlight PDf <Annotations> which are not DocumentViews + if (doc.presentation_targetDoc) DocCast(doc.presentation_targetDoc)[Highlight] = true; } }); } @@ -1246,6 +1248,7 @@ export namespace Doc { highlightedDocs.delete(doc[DocData]); doc[Highlight] = doc[DocData][Highlight] = false; doc[Animation] = undefined; + if (doc.presentation_targetDoc) DocCast(doc.presentation_targetDoc)[Highlight] = false; }); }); } |