mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 23:52:40 +08:00
accelerometer bug fix for vivo (#6580)
This commit is contained in:
@@ -526,7 +526,9 @@ class InputManager {
|
||||
|
||||
if (JSB || RUNTIME_BASED) {
|
||||
// @ts-ignore
|
||||
jsb.device.setMotionInterval(interval);
|
||||
if (jsb.device && jsb.device.setMotionInterval) {
|
||||
jsb.device.setMotionInterval(interval);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user