1
0
mirror of https://github.com/videojs/video.js.git synced 2025-01-17 10:46:00 +02:00

@OwenEdwards fixed menu closing on ios, specifically ipad. closes #3158

This commit is contained in:
Owen Edwards 2016-03-07 15:25:12 -05:00 committed by Gary Katsevman
parent 21051534f3
commit f82a3d148f
3 changed files with 7 additions and 1 deletions

View File

@ -8,6 +8,7 @@ CHANGELOG
* @BrandonOCasey updated text track unit tests to use full es6 syntax ([view](https://github.com/videojs/video.js/pull/3148))
* @defli added missing var to sandbox index.html example ([view](https://github.com/videojs/video.js/pull/3155))
* @defli fixed typo and updated Turkish translations ([view](https://github.com/videojs/video.js/pull/3156))
* @OwenEdwards fixed menu closing on ios, specifically ipad ([view](https://github.com/videojs/video.js/pull/3158))
--------------------

View File

@ -19,7 +19,7 @@
max-height: 15em;
}
.vjs-menu-button-popup:hover .vjs-menu,
.vjs-workinghover .vjs-menu-button-popup:hover .vjs-menu,
.vjs-menu-button-popup .vjs-menu.vjs-lock-showing {
display: block;
}

View File

@ -196,6 +196,11 @@ class Player extends Component {
// this.addClass('vjs-touch-enabled');
// }
// iOS Safari has broken hover handling
if (!browser.IS_IOS) {
this.addClass('vjs-workinghover');
}
// Make player easily findable by ID
Player.players[this.id_] = this;