diff options
| author | bobzel <zzzman@gmail.com> | 2021-02-11 00:54:52 -0500 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2021-02-11 00:54:52 -0500 |
| commit | c86cb3966ecb905c2dc6a6236b71d7ce9c8fb80f (patch) | |
| tree | b298bac13fe89cf8119c28ee95268dcc0844b0e0 /src/client/views/collections/TabDocView.tsx | |
| parent | aed4a386bf57ba7b1b144bacd39f9f9ccabe0dfd (diff) | |
playing with trying to improve chaining of nested focus() method calls.
Diffstat (limited to 'src/client/views/collections/TabDocView.tsx')
| -rw-r--r-- | src/client/views/collections/TabDocView.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/TabDocView.tsx b/src/client/views/collections/TabDocView.tsx index 38e1551e6..e1e1c8656 100644 --- a/src/client/views/collections/TabDocView.tsx +++ b/src/client/views/collections/TabDocView.tsx @@ -356,7 +356,7 @@ export class TabDocView extends React.Component<TabDocViewProps> { </Tooltip> </>; } - focusFunc = (doc: Doc, willZoom?: boolean, scale?: number, afterFocus?: DocAfterFocusFunc, dontCenter?: boolean, notFocused?: boolean) => { + focusFunc = (doc: Doc, willZoom?: boolean, scale?: number, afterFocus?: DocAfterFocusFunc) => { if (!this.tab.header.parent._activeContentItem || this.tab.header.parent._activeContentItem !== this.tab.contentItem) { this.tab.header.parent.setActiveContentItem(this.tab.contentItem); // glr: Panning does not work when this is set - (this line is for trying to make a tab that is not topmost become topmost) } |
