Optimize DeviceMotionEvent, except for useless code re-encapsulating DeviceMotionEven. In addition, the animation cannot continue to execute DeviceMotionEvent event, so we must also optimize this point, first optimize DeviceMotionEvent;
Remove useless code and re-encapsulate DeviceMotionEven
Copy the code