mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
fix(web): restore mobile scrolling outside Telegram (#358)
This commit is contained in:
+18
-1
@@ -98,12 +98,22 @@ body {
|
||||
height: 100vh;
|
||||
height: 100dvh;
|
||||
height: var(--tg-viewport-stable-height, 100dvh);
|
||||
overflow: hidden;
|
||||
touch-action: pan-x pan-y;
|
||||
overscroll-behavior: none;
|
||||
-webkit-text-size-adjust: 100%;
|
||||
}
|
||||
|
||||
html[data-telegram-app="true"],
|
||||
html[data-telegram-app="true"] body {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
html:not([data-telegram-app="true"]),
|
||||
html:not([data-telegram-app="true"]) body {
|
||||
overflow-x: hidden;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
body {
|
||||
font-size: 1rem;
|
||||
background: var(--app-bg);
|
||||
@@ -114,6 +124,13 @@ body {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.app-scroll-y {
|
||||
overflow-y: auto;
|
||||
overscroll-behavior-y: contain;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
touch-action: pan-y;
|
||||
}
|
||||
|
||||
@media (hover: hover) and (pointer: fine) {
|
||||
.session-list-item:hover,
|
||||
.session-list-new-button:hover {
|
||||
|
||||
Reference in New Issue
Block a user