canvas 定位显示问题
- 当前 Bug 的表现(可附上截图)

红色框的内容是用canvas实现的,当页面滑动的时候会跟着页面滑动。有尝试过把canvas设置 position: fixed; 但不起作用。(问题会在手机上出现,测试手机是iPhoneX)

- 预期表现

- 复现路径
pages/home/home
- 提供一个最简复现 Demo
2 回复
canvas是原生组件,无法定义原生组件为 position: fixed,具体请参考:https://developers.weixin.qq.com/miniprogram/dev/component/native-component.html