aboutsummaryrefslogtreecommitdiff
path: root/src/mobile
diff options
context:
space:
mode:
Diffstat (limited to 'src/mobile')
-rw-r--r--src/mobile/MobileInterface.tsx5
-rw-r--r--src/mobile/MobileMenu.scss3
2 files changed, 8 insertions, 0 deletions
diff --git a/src/mobile/MobileInterface.tsx b/src/mobile/MobileInterface.tsx
index 7af11a9c4..5054dd560 100644
--- a/src/mobile/MobileInterface.tsx
+++ b/src/mobile/MobileInterface.tsx
@@ -79,6 +79,11 @@ export class MobileInterface extends React.Component {
document.addEventListener("dblclick", this.onReactDoubleClick);
}
+ @action
+ componentWillUnmount = () => {
+ document.removeEventListener('dblclick', this.onReactDoubleClick);
+ }
+
// Prevent zooming in when double tapping the screen
onReactDoubleClick = (e: MouseEvent) => {
e.stopPropagation();
diff --git a/src/mobile/MobileMenu.scss b/src/mobile/MobileMenu.scss
index 3126a7d0e..e5703c5fb 100644
--- a/src/mobile/MobileMenu.scss
+++ b/src/mobile/MobileMenu.scss
@@ -20,6 +20,7 @@ body {
height: $navbar-height;
background-color: whitesmoke;
border-bottom: 5px solid black;
+ z-index: 150;
}
.navbar .cover {
@@ -192,8 +193,10 @@ body {
.sidebar.active {
+ position: absolute;
right: 0%;
opacity: 1;
+ z-index: 101;
}
.back {