feature/return-to-starting-point-button #26
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "feature/return-to-starting-point-button"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Added return to start feature in a form of a button. When clicked teleports back to the first panorama. Helps with finding the exact location and getting out stuck situations.
@ -156,3 +189,3 @@
#showGuessButtonContainer {
position: absolute;
left: 20px;
left: 60px;
I would modify this as follows:
Then only
left
would change to leave space for the return to start button (and it would have a slightly bigger space).I didn't want to break the symmetry, and I was thinking putting buttons to the right as well. But if you prefer the button to be larger over the symmetry, it's fine by me.
If further buttons are planned, it is OK for me.
However I see you already changed the position, then I wouldn't change back.
@ -152,0 +157,4 @@
#navigation .navigationItem {
margin-top: 10px;
opacity: 70%;
}
Then it will feel like a link.
@ -381,1 +381,4 @@
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';
This semantically belongs to
reset
(after line 334) andresetRound
(after line 360). Yes it will be some ugly code duplication but easier to find there and I plan to refactor this JS in the future.@ -152,0 +163,4 @@
opacity: 100%;
}
#navigation span {
For semantical reasons I would use
div
instead ofspan
becausespan
is intended to be an inline element, however this a block element here.I don't know why, but it breaks the visualization. I didn't see any difference in the CSS tree, when I tried it.
I've realized I've left out the .navigationItem and that's why not the right div was selected. (I see now, that you wrote it correctly in your suggestion)
@ -61,1 +61,4 @@
</div>
<div id="navigation">
<div id="returnToStart" class="navigationItem">
<span>
https://gitea.e5tv.hu/esoko/mapguesser/pulls/26/files#issuecomment-197
Okay, it turned out for me that this PR is already closed :D Maybe this could still be merged independently or the changes could be merged with #27.