Update plyr.js

This commit is contained in:
noxy 2017-02-02 17:14:54 +00:00
parent 1ade83b5ae
commit cdc586c590

View File

@ -2619,11 +2619,11 @@
} }
// Clear timer every movement // Clear timer every movement
//window.clearTimeout(timers.hover); window.clearTimeout(timers.hover);
// If the mouse is not over the controls, set a timeout to hide them // If the mouse is not over the controls, set a timeout to hide them
if (show || plyr.media.paused || loading) { if (show || plyr.media.paused || loading) {
_toggleClass(plyr.container, config.classes.hideControls, false); _toggleClass(plyr.container, config.classes.hideControls, true);
// Always show controls when paused or if touch // Always show controls when paused or if touch
if (plyr.media.paused || loading) { if (plyr.media.paused || loading) {
@ -2645,7 +2645,7 @@
return; return;
} }
_toggleClass(plyr.container, config.classes.hideControls, false); _toggleClass(plyr.container, config.classes.hideControls, true);
}, delay); }, delay);
} }
} }