mirror of
https://github.com/dataarts/dat.gui.git
synced 2024-10-10 06:54:18 +00:00
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:
parent
586c0607b5
commit
46de34be1e
@ -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';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user