diff options
| author | Fawn <fangrui_tong@brown.edu> | 2020-01-15 16:08:48 -0500 |
|---|---|---|
| committer | Fawn <fangrui_tong@brown.edu> | 2020-01-15 16:08:48 -0500 |
| commit | 65e164eaec42d1850de7f5e1eba1d4302c3e8230 (patch) | |
| tree | 322cbc215c9921c5153d512643d1332c0c1fdffc /src/client/views/MainView.tsx | |
| parent | 3cca58612cde96a3082ca8e190fe2166d531d556 (diff) | |
mobile interface emits events when switched to inking view and when strokes are drawn, currently with dummy callbacks
Diffstat (limited to 'src/client/views/MainView.tsx')
| -rw-r--r-- | src/client/views/MainView.tsx | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/client/views/MainView.tsx b/src/client/views/MainView.tsx index 93fb0a07c..f1f7c37a3 100644 --- a/src/client/views/MainView.tsx +++ b/src/client/views/MainView.tsx @@ -49,6 +49,7 @@ export class MainView extends React.Component { private _flyoutSizeOnDown = 0; private _urlState: HistoryUtil.DocUrl; private _docBtnRef = React.createRef<HTMLDivElement>(); + private _mainViewRef = React.createRef<HTMLDivElement>(); @observable private _panelWidth: number = 0; @observable private _panelHeight: number = 0; @@ -507,8 +508,16 @@ export class MainView extends React.Component { return (null); } + get mainViewElement() { + return document.getElementById("mainView-container"); + } + + get mainViewRef() { + return this._mainViewRef; + } + render() { - return (<div id="mainView-container"> + return (<div id="mainView-container" ref={this._mainViewRef}> <DictationOverlay /> <SharingManager /> <GoogleAuthenticationManager /> @@ -518,7 +527,7 @@ export class MainView extends React.Component { </GestureOverlay> <PreviewCursor /> <ContextMenu /> - <RadialMenu/> + <RadialMenu /> <PDFMenu /> <MarqueeOptionsMenu /> <OverlayView /> |
