mirror of
https://github.com/videojs/video.js.git
synced 2025-07-13 01:30:17 +02:00
Merge branch 'hotfix/fix-ie-controls-hiding'
This commit is contained in:
8
src/controls.js
vendored
8
src/controls.js
vendored
@ -240,10 +240,18 @@ _V_.ControlBar = _V_.Component.extend({
|
||||
// Used for transitions (fading out)
|
||||
reveal: function(){
|
||||
this.el.style.opacity = 1;
|
||||
|
||||
// IE doesn't support opacity, so use display instead
|
||||
if ( !('opacity' in document.body.style) ) {
|
||||
this.show();
|
||||
}
|
||||
},
|
||||
|
||||
conceal: function(){
|
||||
this.el.style.opacity = 0;
|
||||
if ( !('opacity' in document.body.style) ) {
|
||||
this.hide();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user