diff options
| author | Fawn <fangrui_tong@brown.edu> | 2020-01-15 17:20:09 -0500 |
|---|---|---|
| committer | Fawn <fangrui_tong@brown.edu> | 2020-01-15 17:20:09 -0500 |
| commit | 43c4ff69d515b874f71f9c638a267cd896036854 (patch) | |
| tree | b4870bc838900def57471b883741146912a822c7 /src/mobile | |
| parent | 65e164eaec42d1850de7f5e1eba1d4302c3e8230 (diff) | |
strokes from mobile interface get properly inserted into desktop with offset of the mobile ink overlay
Diffstat (limited to 'src/mobile')
| -rw-r--r-- | src/mobile/MobileInterface.tsx | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/mobile/MobileInterface.tsx b/src/mobile/MobileInterface.tsx index 1429226b4..4840ea374 100644 --- a/src/mobile/MobileInterface.tsx +++ b/src/mobile/MobileInterface.tsx @@ -68,7 +68,11 @@ export default class MobileInterface extends React.Component { InkingControl.Instance.switchTool(InkTool.Pen); this.drawingInk = true; - DocServer.Mobile.dispatchBoxTrigger(true); + DocServer.Mobile.dispatchBoxTrigger({ + enableBox: true, + width: window.innerWidth, + height: window.innerHeight + }); break; } @@ -112,7 +116,11 @@ export default class MobileInterface extends React.Component { this.switchCurrentView("main"); InkingControl.Instance.switchTool(InkTool.None); // TODO: switch to previous tool - DocServer.Mobile.dispatchBoxTrigger(false); + DocServer.Mobile.dispatchBoxTrigger({ + enableBox: false, + width: window.innerWidth, + height: window.innerHeight + }); this.inkDoc = undefined; this.drawingInk = false; |
