mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-09 01:22:21 +02:00
hide overlays after clicking on them
This commit is contained in:
parent
c785efec84
commit
2e3566bc73
1 changed files with 14 additions and 0 deletions
|
@ -196,8 +196,22 @@
|
|||
return;
|
||||
}
|
||||
if (tryAgainImageHover === overlayID) {
|
||||
// hide try again overlays.
|
||||
var properties = {
|
||||
visible: false
|
||||
};
|
||||
Overlays.editOverlay(tryAgainImageNeutral, properties);
|
||||
Overlays.editOverlay(tryAgainImageHover, properties);
|
||||
Overlays.editOverlay(tryAgainText, properties);
|
||||
location.goToLastAddress();
|
||||
} else if (backImageHover === overlayID && location.canGoBack()) {
|
||||
// hide back overlays.
|
||||
var properties = {
|
||||
visible: false
|
||||
};
|
||||
Overlays.editOverlay(backImageNeutral, properties);
|
||||
Overlays.editOverlay(backImageHover, properties);
|
||||
Overlays.editOverlay(backText, properties);
|
||||
location.goBack();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue