diff options
author | bobzel <zzzman@gmail.com> | 2021-02-12 11:00:29 -0500 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2021-02-12 11:00:29 -0500 |
commit | 4a9d6d1409327fd99c5f554caebd917a316db32b (patch) | |
tree | de5fdbf4b7cb0784dc897ce6e7322c0b47f6c4fd /src/mobile/MobileInterface.tsx | |
parent | 8d40a1a827bceb3f56f82b4c4c1bad8afaee8494 (diff) |
changed lightbox to navigate within frame if next target is alreay there, otherwise create it. changed focus default to call afterFocus(). fixed bug of zooming on target doc to compute scale correctly.
Diffstat (limited to 'src/mobile/MobileInterface.tsx')
-rw-r--r-- | src/mobile/MobileInterface.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mobile/MobileInterface.tsx b/src/mobile/MobileInterface.tsx index 058c61a6d..da3dbecbe 100644 --- a/src/mobile/MobileInterface.tsx +++ b/src/mobile/MobileInterface.tsx @@ -13,7 +13,7 @@ import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { action, computed, observable, runInAction } from 'mobx'; import { observer } from 'mobx-react'; import * as React from "react"; -import { Docs, DocumentOptions } from '../client/documents/Documents'; +import { Docs, DocumentOptions, DocUtils } from '../client/documents/Documents'; import { DocumentType } from "../client/documents/DocumentTypes"; import { CurrentUserUtils } from '../client/util/CurrentUserUtils'; import { Scripting } from '../client/util/Scripting'; @@ -210,7 +210,7 @@ export class MobileInterface extends React.Component { PanelWidth={this.returnWidth} PanelHeight={this.returnHeight} renderDepth={0} - focus={emptyFunction} + focus={DocUtils.DefaultFocus} styleProvider={this.whitebackground} layerProvider={undefined} docViewPath={returnEmptyDoclist} |