1
0
mirror of https://github.com/videojs/video.js.git synced 2024-12-10 11:10:19 +02:00

fix: fix bug preventing control bar from hiding on mobile (#5836)

This commit is contained in:
Thomas 2019-04-11 10:57:56 -07:00 committed by Pat O'Neill
parent 22d0514257
commit 1844482bf5

View File

@ -3687,13 +3687,13 @@ class Player extends Component {
const controlBar = this.getChild('controlBar');
if (controlBar) {
// Fixes bug on Android & iOS where when tapping progressBar (when control bar is displayed)
// controlBar would no longer be hidden by default timeout.
if (controlBar && !browser.IS_IOS && !browser.IS_ANDROID) {
controlBar.on('mouseenter', function(event) {
this.player().cache_.inactivityTimeout = this.player().options_.inactivityTimeout;
this.player().options_.inactivityTimeout = 0;
});
controlBar.on('mouseleave', function(event) {