mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-05-06 19:38:36 +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;
|
return;
|
||||||
}
|
}
|
||||||
if (tryAgainImageHover === overlayID) {
|
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();
|
location.goToLastAddress();
|
||||||
} else if (backImageHover === overlayID && location.canGoBack()) {
|
} 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();
|
location.goBack();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue