Decrease area occluded by menu and fix menu scroll issue on mobile (#56)

* don't occlude area below menu

* only disable pointer events on the menu on desktop or when a tool has been selected on mobile
This commit is contained in:
finnboeger 2020-04-30 16:18:36 +02:00 committed by GitHub
parent ff7a8edcb8
commit 3ba9925d9f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -43,16 +43,16 @@ html, body, svg {
-ms-overflow-style: none;
scrollbar-width: none;
font-size: 16px;
border-radius:0;
overflow-y:scroll;
position:fixed;
border-radius: 0;
overflow-y: scroll;
position: fixed;
margin-bottom: 30px;
left:0;
top:0;
color:black;
height:100%;
transition-duration:1s;
cursor:default;
left: 0;
top: 0;
color: black;
max-height: 100%;
transition-duration: 1s;
cursor: default;
padding: 10px;
pointer-events: none;
}
@ -83,6 +83,10 @@ html, body, svg {
padding:0;
}
#settings {
margin-bottom: 0;
}
#menu .tool {
-webkit-touch-callout: none; /* iOS Safari */
-webkit-user-select: none; /* Safari */
@ -121,6 +125,15 @@ html, body, svg {
#menu .tool:focus {
max-width: 100%;
}
#menu {
pointer-events: auto;
}
#menu:focus-within {
pointer-events: none;
}
}
#menu .tool.curTool {