dcloudio / dcloudio/uni-app

creatSelectorQuery 获取 top 时,在安卓 app 会丢失系统导航栏高度

Open
#4,820 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
41.6k
Forks
3.7k
Avg merge
7h 6m
Merged PRs (30d)
6

Description

大佬们,creatSelectorQuery 获取 top 时,在安卓 app 首次打开页面会计算导航栏getSystemInfo.statusBarHeight,这个时候计算touch点是准确的。返回再进入就会忽略导航高度然后 top 和 height 都会增加,touch就会向上偏移。这样很无奈啊,我用nextTicket也不行

https://github.com/dcloudio/uni-app/assets/28382859/28520c78-e0f2-480b-9581-9072e7cc8df9

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.