Merge branch 'feature/return-to-starting-point-button' into feature/in-game-compass

This commit is contained in:
balazs committed 2021-04-29 08:34:39 +02:00
commit ea599809b8
3 files changed
+11 -10

No files matched your search

+3 -3
View File
@@ -334,6 +334,9 @@
document.getElementById('guess').style.visibility = null;
document.getElementById('guess').classList.remove('result');
// needs to be set visible after the show guess map hid it in mobile view
document.getElementById("navigation").style.visibility = 'visible';
Game.initialize();
},
@@ -380,9 +383,6 @@
Game.loadPano(Game.panoId, Game.pov);
// needs to be set visible after the show guess map hid it in mobile view
document.getElementById("navigation").style.visibility = 'visible';
// update the compass
const heading = Game.panorama.getPov().heading;
document.getElementById("compass").style.transform = "rotate(" + heading + "deg)";