Add missing case for updating touch controls UI mode
This commit is contained in:
1 parent
41d1a84c76
commit
ca720e8a20
1 file changed
+3
@@ -331,6 +331,9 @@ export default class UI extends Phaser.GameObjects.Container {
|
||||
const doRevertMode = () => {
|
||||
this.getHandler().clear();
|
||||
this.mode = this.modeChain.pop();
|
||||
const touchControls = document.getElementById('touchControls');
|
||||
if (touchControls)
|
||||
touchControls.dataset.uiMode = Mode[this.mode];
|
||||
};
|
||||
|
||||
if (noTransitionModes.indexOf(lastMode) === -1) {
|
||||
|
||||
Reference in new issue
Block a user