Fix the save options popup blocking mouse events on Firefox

The background wasn't set to display: none because the css transitions were set with webkit prefix only and so weren't triggered of Firefox.
This commit is contained in:
Thibault D'Archivio 2014-07-02 17:53:25 +02:00
parent 586c0607b5
commit 46de34be1e

View File

@ -27,7 +27,8 @@ define([
display: 'none',
zIndex: '1000',
opacity: 0,
WebkitTransition: 'opacity 0.2s linear'
WebkitTransition: 'opacity 0.2s linear',
transition: 'opacity 0.2s linear'
});
dom.makeFullscreen(this.backgroundElement);
@ -39,7 +40,8 @@ define([
display: 'none',
zIndex: '1001',
opacity: 0,
WebkitTransition: '-webkit-transform 0.2s ease-out, opacity 0.2s linear'
WebkitTransition: '-webkit-transform 0.2s ease-out, opacity 0.2s linear',
transition: 'transform 0.2s ease-out, opacity 0.2s linear'
});
@ -57,8 +59,6 @@ define([
CenteredDiv.prototype.show = function() {
var _this = this;
this.backgroundElement.style.display = 'block';