From 4848b3a3ef1c7e4cc3aec7fa4ab3bd7c0972c472 Mon Sep 17 00:00:00 2001 From: wasrusgen Date: Tue, 12 May 2026 20:16:59 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20splash=20=D0=B1=D0=BB=D0=BE=D0=BA=D0=B8?= =?UTF-8?q?=D1=80=D0=BE=D0=B2=D0=B0=D0=BB=20=D0=BA=D0=BB=D0=B8=D0=BA=D0=B8?= =?UTF-8?q?=20=D0=B2=D0=BE=20=D0=B2=D1=80=D0=B5=D0=BC=D1=8F=20fade-out=20+?= =?UTF-8?q?=20=D1=81=D0=BE=D0=BA=D1=80=D0=B0=D1=82=D0=B8=D0=BB=20min-show?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. .loader.splash.hide теперь имеет pointer-events:none !important — во время 400мс fade splash не блокирует тапы. 2. minShow 2500мс → 1200мс — меньше ожидания, меньше шансов попасть в окно когда splash ещё блокирует. Cache bust v=20260513h. --- miniapp/assets/app.js | 2 +- miniapp/assets/styles.css | 2 ++ miniapp/index.html | 20 ++++++++++---------- 3 files changed, 13 insertions(+), 11 deletions(-) diff --git a/miniapp/assets/app.js b/miniapp/assets/app.js index 715f927..ed2ae03 100644 --- a/miniapp/assets/app.js +++ b/miniapp/assets/app.js @@ -645,7 +645,7 @@ function hideSplash() { const splash = document.getElementById("splash"); if (!splash) return; const elapsed = Date.now() - _splashStart; - const minShow = 2500; // минимум показа, мс — 2.5 сек чтобы успеть рассмотреть лого + const minShow = 1200; // минимум показа, мс — 1.2 сек хватает чтобы рассмотреть лого и не блокировать UI const wait = Math.max(0, minShow - elapsed); setTimeout(() => { splash.classList.add("hide"); diff --git a/miniapp/assets/styles.css b/miniapp/assets/styles.css index 5505ec7..b899f50 100644 --- a/miniapp/assets/styles.css +++ b/miniapp/assets/styles.css @@ -277,6 +277,8 @@ button { font: inherit; cursor: pointer; border: none; background: none; color: to { opacity: 1; } } .loader.splash.hide { + /* Мгновенно отключаем взаимодействие, чтобы splash не блокировал клики во время fade */ + pointer-events: none !important; animation: splashFadeOut 0.4s ease-out forwards; } @keyframes splashFadeOut { diff --git a/miniapp/index.html b/miniapp/index.html index 92633a9..39d10db 100644 --- a/miniapp/index.html +++ b/miniapp/index.html @@ -12,8 +12,8 @@ - - + + @@ -34,13 +34,13 @@
- - - - - - - - + + + + + + + +