From 6df649ae1228f191a5654e45e898880b130afd28 Mon Sep 17 00:00:00 2001 From: Lionel Han <47760119+IGoByJoe@users.noreply.github.com> Date: Fri, 19 Jun 2020 21:43:56 -0700 Subject: fixed icon appearing over sidebar bug --- src/client/views/GestureOverlay.tsx | 4 ++-- src/mobile/MobileInterface.tsx | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'src') diff --git a/src/client/views/GestureOverlay.tsx b/src/client/views/GestureOverlay.tsx index 1c305ebeb..2121b27f0 100644 --- a/src/client/views/GestureOverlay.tsx +++ b/src/client/views/GestureOverlay.tsx @@ -157,8 +157,8 @@ export default class GestureOverlay extends Touchable { // -- radial menu code -- this._holdTimer = setTimeout(() => { console.log("hold"); - const target = document.elementFromPoint(te.changedTouches.item(0).clientX, te.changedTouches.item(0).clientY); - const pt: any = te.touches[te.touches.length - 1]; + const target = document.elementFromPoint(te.changedTouches?.item(0).clientX, te.changedTouches?.item(0).clientY); + const pt: any = te.touches[te.touches?.length - 1]; if (nts.nt.length === 1 && pt.radiusX > 1 && pt.radiusY > 1) { target?.dispatchEvent( new CustomEvent>("dashOnTouchHoldStart", diff --git a/src/mobile/MobileInterface.tsx b/src/mobile/MobileInterface.tsx index 2fde359aa..63c7873f4 100644 --- a/src/mobile/MobileInterface.tsx +++ b/src/mobile/MobileInterface.tsx @@ -760,15 +760,15 @@ export class MobileInterface extends React.Component { {this.switchMenuView()} {this.inkMenu()} -
- {this.uploadImageButton()} - {this.pinToPresentation()} - {this.downloadDocument()} - {this.drawInk()} - {this.uploadAudioButton()} -
+
+ {this.uploadImageButton()} + {this.pinToPresentation()} + {this.downloadDocument()} + {this.drawInk()} + {this.uploadAudioButton()} +
{this.displayWorkspaces()} {this.renderDefaultContent()}
-- cgit v1.2.3-70-g09d2