Fixed issue where the preview thumbnail was present while scrubbing
This commit is contained in:
11
demo/dist/demo.js
vendored
11
demo/dist/demo.js
vendored
@ -7371,7 +7371,7 @@ typeof navigator === "object" && (function () {
|
||||
// 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
|
||||
@ -11063,7 +11063,6 @@ typeof navigator === "object" && (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
|
||||
@ -11073,8 +11072,12 @@ typeof navigator === "object" && (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;
|
||||
|
2
demo/dist/demo.min.js
vendored
2
demo/dist/demo.min.js
vendored
File diff suppressed because one or more lines are too long
2
demo/dist/demo.min.js.map
vendored
2
demo/dist/demo.min.js.map
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user