Fix native rAF and cAF (#6792)

* Fix native rAF and cAF

* Update version
This commit is contained in:
pandamicro
2020-05-31 14:50:51 +08:00
committed by GitHub
parent 34eab244fc
commit 1cefb4e04c
3 changed files with 4 additions and 2 deletions
+2
View File
@@ -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
View File
@@ -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
View File
@@ -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;