使用wx.onAccelerometerChange接口来做水平仪功能?
代码片段:https://developers.weixin.qq.com/s/7Ry9t8ms7ccw
拍照之后再回到页面时旋转屏幕会出现:
1、红线、蓝线会偶尔消失
2、出现多条红线
3、页面存在时间过长时小程序会卡死,除了胶囊 其他按钮点击无效


代码片段:https://developers.weixin.qq.com/s/7Ry9t8ms7ccw
拍照之后再回到页面时旋转屏幕会出现:
1、红线、蓝线会偶尔消失
2、出现多条红线
3、页面存在时间过长时小程序会卡死,除了胶囊 其他按钮点击无效