Add missing case for updating touch controls UI mode

pull/14/head
Flashfyre 2023-12-25 15:06:56 -05:00
parent 41d1a84c76
commit ca720e8a20
1 changed files with 3 additions and 0 deletions

View File

@ -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) {