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:
parent
ce18a9af74
commit
d55227668c
@ -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))
|
||||
|
||||
--------------------
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user