diff options
author | Sam <me@sampotts.me> | 2016-04-26 21:15:36 +1000 |
---|---|---|
committer | Sam <me@sampotts.me> | 2016-04-26 21:15:36 +1000 |
commit | 57b3b9e3f603f5457920e4328a82b5585294e7d9 (patch) | |
tree | 1d53304c1d02ca2a45b6ee22bc1378a43ad4f8e0 /src/js/plyr.js | |
parent | 6c8d118f8382bbdc44ba4a82c05d0cd5daa896c0 (diff) | |
download | plyr-57b3b9e3f603f5457920e4328a82b5585294e7d9.tar.lz plyr-57b3b9e3f603f5457920e4328a82b5585294e7d9.tar.xz plyr-57b3b9e3f603f5457920e4328a82b5585294e7d9.zip |
Audio styles
Diffstat (limited to 'src/js/plyr.js')
-rw-r--r-- | src/js/plyr.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/js/plyr.js b/src/js/plyr.js index 45bc2c18..a4af9826 100644 --- a/src/js/plyr.js +++ b/src/js/plyr.js @@ -2423,6 +2423,11 @@ var trigger = plyr.buttons[play ? 'play' : 'pause'], target = plyr.buttons[play ? 'pause' : 'play']; + // Get the last play button to account for the large play button + if(target && target.length > 1) { + target = target[target.length - 1]; + } + // Setup focus and tab focus if(target) { var hadTabFocus = _hasClass(trigger, config.classes.tabFocus); |