当用onDeviceMotionChange监听手机方向时候,再打开相机控件,出现卡顿

发布于 6 年前作者 gang937348 次浏览最后编辑 6 年前来自 ask

当用onDeviceMotionChange监听手机方向时候,再打开相机控件,出现卡顿,最后onDeviceMotionChange无法工作

2 回复
taomin
taomin1 楼6 年前

你好,可以监听下内存看看https://developers.weixin.qq.com/miniprogram/dev/api/device/performance/wx.onMemoryWarning.html,也尝试更新下微信版本看看。

hhu
hhu2 楼4 年前

打开相机控件时候,过一段时间,onDeviceMotionChange返回延迟