diff options
author | Sam Potts <sam@potts.es> | 2019-02-24 12:10:20 +1100 |
---|---|---|
committer | Sam Potts <sam@potts.es> | 2019-02-24 12:10:20 +1100 |
commit | 4c3bf25b8a6228b8b48a28f351df1ae2523e6d19 (patch) | |
tree | e9491b31fa6d5158e76a240133b2342fdc60b74c /dist/plyr.polyfilled.mjs | |
parent | 215fc3677af16e08ffa351b20a4b5b15719df307 (diff) | |
download | plyr-4c3bf25b8a6228b8b48a28f351df1ae2523e6d19.tar.lz plyr-4c3bf25b8a6228b8b48a28f351df1ae2523e6d19.tar.xz plyr-4c3bf25b8a6228b8b48a28f351df1ae2523e6d19.zip |
Fixed issue where the preview thumbnail was present while scrubbing
Diffstat (limited to 'dist/plyr.polyfilled.mjs')
-rw-r--r-- | dist/plyr.polyfilled.mjs | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/dist/plyr.polyfilled.mjs b/dist/plyr.polyfilled.mjs index 482c304b..ac5c574b 100644 --- a/dist/plyr.polyfilled.mjs +++ b/dist/plyr.polyfilled.mjs @@ -6903,7 +6903,7 @@ var defaults$1 = { // Sprite (for icons) loadSprite: true, iconPrefix: 'plyr', - iconUrl: 'https://cdn.plyr.io/3.5.1/plyr.svg', + iconUrl: 'https://cdn.plyr.io/3.5.2/plyr.svg', // Blank video (used to prevent errors on source change) blankVideo: 'https://cdn.plyr.io/static/blank.mp4', // Quality default @@ -10615,7 +10615,6 @@ function () { if (this.mouseDown) { this.setScrubbingContainerSize(); } else { - this.toggleThumbContainer(true); this.setThumbContainerSizeAndPos(); } // Find the desired thumbnail index // TODO: Handle a video longer than the thumbs where thumbNum is null @@ -10625,8 +10624,12 @@ function () { return _this6.seekTime >= frame.startTime && _this6.seekTime <= frame.endTime; }); var hasThumb = thumbNum >= 0; - var qualityIndex = 0; - this.toggleThumbContainer(hasThumb); // No matching thumb found + var qualityIndex = 0; // Show the thumb container if we're not scrubbing + + if (!this.mouseDown) { + this.toggleThumbContainer(hasThumb); + } // No matching thumb found + if (!hasThumb) { return; |