给view设置overflow-y:scroll时,微信开发者工具可以滚动,在手机上预览不能滚动
- Dominant language
- JavaScript
- Stars
- 41.6k
- Forks
- 3.7k
- Avg merge
- 7h 6m
- Merged PRs (30d)
- 6
Description
**问题描述**
小程序中使用uni-pupop弹出框插件,弹出框内的一个view给最大高度,同时为超出的部分设置overflow-y:scroll,结果在微信开发者工具可以滚动,但是在手机上预览不能滚动。百度找到一些解决方案比如添加:-webkit-overflow-scrolling:touch;,但是在手机上预览始终无效
**复现步骤**
需要滚动的view容器的样式如下:
max-height: 700rpx;
overflow-y: scroll;
-webkit-overflow-scrolling:touch;
**预期结果**
希望可以在手机预览时也可以滚动
**实际结果**
只有在微信开发者工具上该view才可以滚动,但是在手机上预览无法滚动
**系统信息:**
- 发行平台: [如 微信小程序]
**补充信息**
无
Contributor guide
Research direction
Start by reproducing the reported uni-pupop view behavior on a physical phone and comparing it with WeChat Developer Tools, using the provided max-height, overflow-y, and -webkit-overflow-scrolling styles. Inspect the uni-pupop integration and platform-specific scrolling behavior; done means the view scrolls reliably in the phone preview as well as the developer tools.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100