diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/js/plyr.js | 12 | ||||
-rw-r--r-- | src/less/plyr.less | 1 | ||||
-rw-r--r-- | src/sass/plyr.scss | 1 |
3 files changed, 8 insertions, 6 deletions
diff --git a/src/js/plyr.js b/src/js/plyr.js index e39665e8..3d78c58c 100644 --- a/src/js/plyr.js +++ b/src/js/plyr.js @@ -1,13 +1,13 @@ // ========================================================================== // Plyr -// plyr.js v1.5.20 +// plyr.js v1.5.21 // https://github.com/selz/plyr // License: The MIT License (MIT) // ========================================================================== // Credits: http://paypal.github.io/accessible-html5-video-player/ // ========================================================================== -(function(root, factory) { +;(function(root, factory) { 'use strict'; /*global define,module*/ @@ -1409,14 +1409,14 @@ // When embeds are ready function _embedReady() { - // Set title - _setTitle(_getElement('iframe')); - // Store reference to API plyr.container.plyr.embed = plyr.embed; // Setup the UI _setupInterface(); + + // Set title + _setTitle(_getElement('iframe')); } // Handle YouTube API ready @@ -2830,7 +2830,7 @@ } // Create a player instance for each element - for (var i = elements.length - 1; i >= 0; i--) { + for (var i = 0; i < elements.length; i++) { // Get the current element var element = elements[i]; diff --git a/src/less/plyr.less b/src/less/plyr.less index 61b5e2ae..f27023bc 100644 --- a/src/less/plyr.less +++ b/src/less/plyr.less @@ -343,6 +343,7 @@ bottom: 100%; margin-bottom: @plyr-tooltip-padding; padding: @plyr-tooltip-padding (@plyr-tooltip-padding * 1.5); + pointer-events: none; opacity: 0; background: @plyr-tooltip-bg; diff --git a/src/sass/plyr.scss b/src/sass/plyr.scss index 0e30eb4f..8de9af6e 100644 --- a/src/sass/plyr.scss +++ b/src/sass/plyr.scss @@ -343,6 +343,7 @@ $plyr-bp-captions-large: 768px !default; // When captions jump to th bottom: 100%; margin-bottom: $plyr-tooltip-padding; padding: $plyr-tooltip-padding ($plyr-tooltip-padding * 1.5); + pointer-events: none; opacity: 0; background: $plyr-tooltip-bg; |