mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 23:52:40 +08:00
Fix native rAF and cAF (#6792)
* Fix native rAF and cAF * Update version
This commit is contained in:
@@ -733,6 +733,8 @@ export class Game extends EventTarget {
|
||||
|
||||
if (JSB) {
|
||||
jsb.setPreferredFramesPerSecond(frameRate);
|
||||
window.rAF = window.requestAnimationFrame;
|
||||
window.cAF = window.cancelAnimationFrame;
|
||||
}
|
||||
else {
|
||||
if (this._intervalId) {
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "cocos-creator-3d",
|
||||
"version": "1.0.2",
|
||||
"version": "1.1.1",
|
||||
"description": "Cocos Creator 3D is a cross-platform 3D game engine written in Javascript, licensed under MIT.",
|
||||
"homepage": "http://www.cocos.com",
|
||||
"license": "MIT",
|
||||
|
||||
+1
-1
@@ -165,7 +165,7 @@ if (DEV) {
|
||||
* Please DO NOT remove this String, it is an important flag for bug tracking.<br/>
|
||||
* If you post a bug to forum, please attach this flag.
|
||||
*/
|
||||
const engineVersion = '1.1.0';
|
||||
const engineVersion = '1.1.1';
|
||||
_global.CocosEngine = cc.ENGINE_VERSION = engineVersion;
|
||||
|
||||
export default cc;
|
||||
|
||||
Reference in New Issue
Block a user