only the image is rotated, not the whole div
default-pipeline default-pipeline #141

This commit is contained in:
balazs committed 2021-04-29 09:18:24 +02:00
1 parent 0739c65961
commit d42280eb10
2 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -388,7 +388,7 @@
// update the compass
const heading = Game.panorama.getPov().heading;
document.getElementById("compass").style.transform = "rotate(" + heading + "deg)";
document.getElementById("compass").style.transform = "translateY(-50%) rotate(" + heading + "deg)";
},
handleErrorResponse: function (error) {
@@ -867,7 +867,7 @@
Game.rewriteGoogleLink();
const heading = Game.panorama.getPov().heading;
document.getElementById("compass").style.transform = "rotate(" + heading + "deg)";
document.getElementById("compass").style.transform = "translateY(-50%) rotate(" + heading + "deg)";
});
if (COOKIES_CONSENT) {