1
0
mirror of https://github.com/videojs/video.js.git synced 2024-11-28 08:58:46 +02:00

@heff turned on the custom html controls for touch devices. closes #1617

This commit is contained in:
Steve Heffernan 2014-10-28 16:53:30 -07:00
parent ce18a9af74
commit d55227668c
2 changed files with 3 additions and 1 deletions

View File

@ -13,6 +13,7 @@ CHANGELOG
* @mmcc fixed an issue with the VolumeButton assuming it was vertical by default ([view](https://github.com/videojs/video.js/pull/1592))
* @DevGavin added a Simplified Chinese translation ([view](https://github.com/videojs/video.js/pull/1593))
* @heff Added the ability to set options for child components directly in the parent options ([view](https://github.com/videojs/video.js/pull/1599))
* @heff turned on the custom html controls for touch devices ([view](https://github.com/videojs/video.js/pull/1617))
--------------------

View File

@ -44,7 +44,8 @@ vjs.Html5 = vjs.MediaTechController.extend({
// Our goal should be to get the custom controls on mobile solid everywhere
// so we can remove this all together. Right now this will block custom
// controls on touch enabled laptops like the Chrome Pixel
if (vjs.TOUCH_ENABLED && player.options()['nativeControlsForTouch'] !== false) {
if (vjs.TOUCH_ENABLED && player.options()['nativeControlsForTouch'] === true) {
alert('useNativeControls');
this.useNativeControls();
}