Fixed bug causing image manager popup not to show

This commit is contained in:
Dan Brown
2017-08-07 19:32:31 +01:00
parent 1ac7618bb1
commit a59d73de7b
2 changed files with 3 additions and 3 deletions

View File

@ -21,7 +21,7 @@ class Overlay {
let targetOpacity = show ? (elapsedTime / duration) : 1-(elapsedTime / duration);
this.container.style.opacity = targetOpacity;
if (elapsedTime > duration) {
this.container.style.display = show ? 'display' : 'none';
this.container.style.display = show ? 'flex' : 'none';
this.container.style.opacity = '';
} else {
requestAnimationFrame(setOpacity.bind(this));