diff --git a/cocos/core/game.ts b/cocos/core/game.ts index 84c1951475..a606ac5122 100644 --- a/cocos/core/game.ts +++ b/cocos/core/game.ts @@ -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) { diff --git a/package.json b/package.json index 433b7639a8..45bcd03700 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/predefine.ts b/predefine.ts index 869fdf5d39..8ec843e3c1 100644 --- a/predefine.ts +++ b/predefine.ts @@ -165,7 +165,7 @@ if (DEV) { * Please DO NOT remove this String, it is an important flag for bug tracking.
* 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;