diff options
Diffstat (limited to 'src/js/plyr.js')
-rw-r--r-- | src/js/plyr.js | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/js/plyr.js b/src/js/plyr.js index a482f41f..9b06ed65 100644 --- a/src/js/plyr.js +++ b/src/js/plyr.js @@ -939,10 +939,20 @@ class Plyr { isEnterFullscreen = toggle.type === 'enterfullscreen'; // Whether to show controls - show = ['mouseenter', 'mousemove', 'touchstart', 'touchmove', 'focusin'].includes(toggle.type); + show = [ + 'mouseenter', + 'mousemove', + 'touchstart', + 'touchmove', + 'focusin', + ].includes(toggle.type); // Delay hiding on move events - if (['mousemove', 'touchmove', 'touchend'].includes(toggle.type)) { + if ([ + 'mousemove', + 'touchmove', + 'touchend', + ].includes(toggle.type)) { delay = 2000; } |