aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionTimeView.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2023-03-05 21:24:09 -0500
committerbobzel <zzzman@gmail.com>2023-03-05 21:24:09 -0500
commit0c38e4dc096d6abf82ef11286616856b7119c6e1 (patch)
treed61cb1b38a246a56905a0b24f6e81562b480934a /src/client/views/collections/CollectionTimeView.tsx
parenta95043b3fd0325f79cae080bc71e8fe06432bdc3 (diff)
replace jumpToDocument with showDocument. restructure code to get rid of scrollFocus by adding getView() and fixing focus() and restoreTargetView
Diffstat (limited to 'src/client/views/collections/CollectionTimeView.tsx')
-rw-r--r--src/client/views/collections/CollectionTimeView.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/views/collections/CollectionTimeView.tsx b/src/client/views/collections/CollectionTimeView.tsx
index 437b22040..89b2fbfe3 100644
--- a/src/client/views/collections/CollectionTimeView.tsx
+++ b/src/client/views/collections/CollectionTimeView.tsx
@@ -66,11 +66,11 @@ export class CollectionTimeView extends CollectionSubView() {
};
@action
- scrollPreview = (docView: DocumentView, anchor: Doc, options: DocFocusOptions) => {
+ scrollPreview = (docView: DocumentView, anchor: Doc, focusSpeed: number, options: DocFocusOptions) => {
// if in preview, then override document's fields with view spec
- this._focusFilters = StrListCast(anchor.presPinDocFilters);
+ this._focusFilters = StrListCast(anchor.presDocFilters);
this._focusRangeFilters = StrListCast(anchor.presPinDocRangeFilters);
- this._focusPivotField = StrCast(anchor.presPinPivotField);
+ this._focusPivotField = StrCast(anchor.presPivotField);
return undefined;
};