diff options
author | bobzel <zzzman@gmail.com> | 2021-02-14 21:48:55 -0500 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2021-02-14 21:48:55 -0500 |
commit | 4ef4d06413169971a3919aa0c935eb321be7288b (patch) | |
tree | c2cd7ba6ad4321b30ef9865134d91b4131fdffe9 /src/client/util/DocumentManager.ts | |
parent | 6fcef3d8dfdbe373724d2f11c9df8f350bd8950c (diff) |
fixed freeformview focus to not pan annotation documents or layoutEngine freeform views. fixed some exceptions. cleaned up focus() return value.
Diffstat (limited to 'src/client/util/DocumentManager.ts')
-rw-r--r-- | src/client/util/DocumentManager.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/util/DocumentManager.ts b/src/client/util/DocumentManager.ts index dd59efa41..6013a2ef3 100644 --- a/src/client/util/DocumentManager.ts +++ b/src/client/util/DocumentManager.ts @@ -7,7 +7,7 @@ import { DocumentType } from '../documents/DocumentTypes'; import { CollectionDockingView } from '../views/collections/CollectionDockingView'; import { CollectionView } from '../views/collections/CollectionView'; import { LightboxView } from '../views/LightboxView'; -import { DocumentView } from '../views/nodes/DocumentView'; +import { DocumentView, ViewAdjustment } from '../views/nodes/DocumentView'; import { Scripting } from './Scripting'; export class DocumentManager { @@ -173,7 +173,7 @@ export class DocumentManager { else if (docView) { docView.props.focus(targetDoc, { originalTarget, willZoom, afterFocus: (didFocus: boolean) => - new Promise<boolean>(res => { + new Promise<ViewAdjustment>(res => { focusAndFinish(didFocus); res(); }) @@ -197,7 +197,7 @@ export class DocumentManager { if (retryDocView) { // we found the target in the context retryDocView.props.focus(targetDoc, { willZoom, afterFocus: (didFocus: boolean) => - new Promise<boolean>(res => { + new Promise<ViewAdjustment>(res => { focusAndFinish(didFocus); res(); }) |