- 当前 Bug 的表现(可附上截图)
当手机平放桌面时,x轴、y轴、z轴还在跳动
- 预期表现
当手机静止时,x轴、y轴、z轴应该停止
以下是代码
wx.onAccelerometerChange(function (res) { console.log(res.x) console.log(res.y) console.log(res.z)
})
wx.startAccelerometer({ interval: 'game'})
为什么手机静止时x轴、y轴、z轴还在跳动?
框架类型 | 问题类型 | API/组件名称 | 终端类型 | 微信版本 | 基础库版本 |
---|---|---|---|---|---|
小游戏 | Bug | onAccelerometerChange | 客户端 | 1.02.18122260 | 2.4.3 |