fix(splash-screen): 修复启动屏拦截首页触摸事件的问题

针对H5端和普通启动场景,分别处理触摸事件拦截问题:
1. 给启动屏组件添加pointer-events:none,让首页在渐隐期也能正常交互
2. 修改uni.showLoading的mask参数为false,避免原生蒙层遮挡触摸
This commit is contained in:
2026-07-15 15:12:59 +08:00
parent 313c283d9b
commit 793b988376
2 changed files with 9 additions and 1 deletions

View File

@@ -112,6 +112,10 @@
overflow: hidden;
opacity: 1;
transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1);
// 启动屏是纯视觉装饰(轨道/粒子/进度条),无任何可点击元素。
// 关闭 pointer-events,让首页在 boot 完成前即可滚动/点击,
// 否则 z-index:99999 全屏 fixed 会把触摸事件全部吞掉(含 480ms 渐隐期)。
pointer-events: none;
&--leaving {
opacity: 0;