diff options
author | Sam Potts <sam@potts.es> | 2019-03-07 18:30:05 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-07 18:30:05 +1100 |
commit | 568ddf2390def8d774fd16b7d8bea287e54b9e83 (patch) | |
tree | e9491b31fa6d5158e76a240133b2342fdc60b74c /src/js/plugins | |
parent | 83eda174af655534223d0855a1748b08eb1db6e1 (diff) | |
parent | 4c3bf25b8a6228b8b48a28f351df1ae2523e6d19 (diff) | |
download | plyr-568ddf2390def8d774fd16b7d8bea287e54b9e83.tar.lz plyr-568ddf2390def8d774fd16b7d8bea287e54b9e83.tar.xz plyr-568ddf2390def8d774fd16b7d8bea287e54b9e83.zip |
Merge pull request #1375 from sampotts/master
Merge back
Diffstat (limited to 'src/js/plugins')
-rw-r--r-- | src/js/plugins/previewThumbnails.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/js/plugins/previewThumbnails.js b/src/js/plugins/previewThumbnails.js index 834d16f2..bd7a6bbd 100644 --- a/src/js/plugins/previewThumbnails.js +++ b/src/js/plugins/previewThumbnails.js @@ -220,6 +220,7 @@ class PreviewThumbnails { // Only act on left mouse button (0), or touch device (event.button is false) if (event.button === false || event.button === 0) { this.mouseDown = true; + // Wait until media has a duration if (this.player.media.duration) { this.toggleScrubbingContainer(true); @@ -307,7 +308,6 @@ class PreviewThumbnails { if (this.mouseDown) { this.setScrubbingContainerSize(); } else { - this.toggleThumbContainer(true); this.setThumbContainerSizeAndPos(); } @@ -319,7 +319,10 @@ class PreviewThumbnails { const hasThumb = thumbNum >= 0; let qualityIndex = 0; - this.toggleThumbContainer(hasThumb); + // Show the thumb container if we're not scrubbing + if (!this.mouseDown) { + this.toggleThumbContainer(hasThumb); + } // No matching thumb found if (!hasThumb) { |