aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionStackingView.tsx
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2020-05-12 13:56:14 -0400
committerBob Zeleznik <zzzman@gmail.com>2020-05-12 13:56:14 -0400
commit54e8450ea88a03bee23cbad3321b5f6bac465e33 (patch)
treee745596593545b456432178af3fb8b2673d8d333 /src/client/views/collections/CollectionStackingView.tsx
parent3911cf85eaf57c133166a6bd08732193ac74d885 (diff)
fixed issues with preselements not updating. fixed focus issues with stacking view for Presentations
Diffstat (limited to 'src/client/views/collections/CollectionStackingView.tsx')
-rw-r--r--src/client/views/collections/CollectionStackingView.tsx7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/client/views/collections/CollectionStackingView.tsx b/src/client/views/collections/CollectionStackingView.tsx
index 97459d910..821a6d476 100644
--- a/src/client/views/collections/CollectionStackingView.tsx
+++ b/src/client/views/collections/CollectionStackingView.tsx
@@ -175,8 +175,8 @@ export class CollectionStackingView extends CollectionSubView(StackingDocument)
focusDocument = (doc: Doc, willZoom: boolean, scale?: number, afterFocus?: () => boolean) => {
- Doc.BrushDoc(this.props.Document);
- this.props.focus(this.props.Document);
+ Doc.BrushDoc(doc);
+ this.props.focus(doc);
Doc.linkFollowHighlight(doc);
const found = this._mainCont && Array.from(this._mainCont.getElementsByClassName("documentView-node")).find((node: any) => node.id === doc[Id]);
@@ -186,8 +186,7 @@ export class CollectionStackingView extends CollectionSubView(StackingDocument)
smoothScroll(500, this._mainCont!, localTop[1] + this._mainCont!.scrollTop);
}
afterFocus && setTimeout(() => {
- if (afterFocus?.()) {
- }
+ if (afterFocus?.()) { }
}, 500);
}