From eb766b534d9f621ad9f36de704ad0787f9c2caf3 Mon Sep 17 00:00:00 2001 From: Eemeli Kelokorpi Date: Tue, 31 Mar 2020 10:48:29 +0300 Subject: [PATCH 1/3] Fixed Android 6 screen size bug --- src/engine/system.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/engine/system.js b/src/engine/system.js index 9abbabbc..c1f353d8 100644 --- a/src/engine/system.js +++ b/src/engine/system.js @@ -452,6 +452,7 @@ game.createClass('System', { **/ _updateWindowSize: function() { if (typeof document === 'undefined') return; + if (game.device.android && window.innerHeight - this._windowHeight === 24) return; // Fix Android 6 screen size bug this._windowWidth = game.device.WKWebView ? document.documentElement.clientWidth : window.innerWidth; this._windowHeight = game.device.WKWebView ? document.documentElement.clientHeight : window.innerHeight; if (game.device.crosswalk && this._windowWidth === 0) { From 6f014833a47838b5e2447c7c0f3030ded8c2edaa Mon Sep 17 00:00:00 2001 From: Eemeli Kelokorpi Date: Tue, 31 Mar 2020 10:48:52 +0300 Subject: [PATCH 2/3] Fixed error in Physics collision --- src/engine/physics.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/physics.js b/src/engine/physics.js index 4a942bd4..34075b1d 100644 --- a/src/engine/physics.js +++ b/src/engine/physics.js @@ -460,7 +460,7 @@ game.createClass('Physics', { } for (j = 0; j < this._collisionGroups[i].length; j++) { if (this._collisionGroups[i][j] && this._collisionGroups[i][j].collideAgainst.length > 0) { - this._collide(this._collisionGroups[i][j]); + this.collide(this._collisionGroups[i][j]); } } } From 35a16a8437f99962d34c68743d4c68945fd5a270 Mon Sep 17 00:00:00 2001 From: Eemeli Kelokorpi Date: Tue, 31 Mar 2020 10:49:02 +0300 Subject: [PATCH 3/3] Updated version number --- src/engine/core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/core.js b/src/engine/core.js index 6c1502a1..0ae37440 100644 --- a/src/engine/core.js +++ b/src/engine/core.js @@ -99,7 +99,7 @@ var game = { Engine version. @property {String} version **/ - version: '2.13.0', + version: '2.13.1', /** @property {Boolean} _booted @private