aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/plyr.js
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2017-12-20 15:14:05 +0000
committerSam Potts <sam@potts.es>2017-12-20 15:14:05 +0000
commit6864149989c6a5b1bb6e9199e1f8af062c64dcc4 (patch)
tree283649e596f5a81780fabe3603bb0be7d0d47485 /src/js/plyr.js
parentaab53fa91fded2babdef8c3529a0ff1203f92f97 (diff)
downloadplyr-6864149989c6a5b1bb6e9199e1f8af062c64dcc4.tar.lz
plyr-6864149989c6a5b1bb6e9199e1f8af062c64dcc4.tar.xz
plyr-6864149989c6a5b1bb6e9199e1f8af062c64dcc4.zip
Converted to SASS/SCSS
Diffstat (limited to 'src/js/plyr.js')
-rw-r--r--src/js/plyr.js14
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;
}