MAPG-213 move visibility workaround to Game.showResultMap #20

Merged
bence merged 1 commits from bugfix/MAPG-213-result-map-not-show-on-mobile-after-reload into develop 2021-04-04 23:41:05 +02:00

View File

@ -202,11 +202,6 @@
return;
}
// TODO: refactor - it is necessary for mobile
if (window.getComputedStyle(document.getElementById('guess')).visibility === 'hidden') {
document.getElementById('showGuessButton').click();
}
document.getElementById('guessButton').disabled = true;
document.getElementById('panoCover').style.visibility = 'visible';
@ -466,6 +461,11 @@
},
showResultMap: function (result, resultBounds) {
// TODO: refactor - it is necessary for mobile
if (window.getComputedStyle(document.getElementById('guess')).visibility === 'hidden') {
document.getElementById('showGuessButton').click();
}
if (Game.adaptGuess) {
document.getElementById('guess').classList.remove('adapt');
}