Disabled touch when Pop-up is open (#2308)

Signed-off-by: Alexander Platov <sas_lord@mail.ru>
This commit is contained in:
Alexander Platov 2022-10-17 07:59:02 +03:00 committed by GitHub
parent 098aff603d
commit c008140983
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 1 deletions

View File

@ -181,6 +181,7 @@
left: 0; left: 0;
width: 100%; width: 100%;
height: 100%; height: 100%;
touch-action: none;
&.show { &.show {
background: rgba(0, 0, 0, 0.5); background: rgba(0, 0, 0, 0.5);

View File

@ -162,5 +162,6 @@
width: 100%; width: 100%;
height: 100vh; height: 100vh;
transition: background-color 0.5s ease; transition: background-color 0.5s ease;
touch-action: none;
} }
</style> </style>

View File

@ -101,7 +101,10 @@
class="flex-center widget mr-3" class="flex-center widget mr-3"
class:on={isMobile} class:on={isMobile}
class:always={alwaysMobile} class:always={alwaysMobile}
on:click={() => (alwaysMobile = !alwaysMobile)} on:click={() => {
alwaysMobile = !alwaysMobile
document.documentElement.style.setProperty('--app-height', `${window.innerHeight}px`)
}}
> >
<WiFi size={'small'} /> <WiFi size={'small'} />
</div> </div>