diff options
author | ydylla <ydylla@gmail.com> | 2020-02-01 16:32:14 +0100 |
---|---|---|
committer | ydylla <ydylla@gmail.com> | 2020-02-01 16:32:19 +0100 |
commit | 61a24eab765f09bdcff92c872c6882d79cf4d180 (patch) | |
tree | 14ba1b7b16d8983e6eb0eb8994c255ed60344676 /src/js/plugins/preview-thumbnails.js | |
parent | 8b9521d5a5d34bf81c57e901286ac325da2c1fc0 (diff) | |
download | plyr-61a24eab765f09bdcff92c872c6882d79cf4d180.tar.lz plyr-61a24eab765f09bdcff92c872c6882d79cf4d180.tar.xz plyr-61a24eab765f09bdcff92c872c6882d79cf4d180.zip |
add previewThumbnails source setter #1369
Diffstat (limited to 'src/js/plugins/preview-thumbnails.js')
-rw-r--r-- | src/js/plugins/preview-thumbnails.js | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/js/plugins/preview-thumbnails.js b/src/js/plugins/preview-thumbnails.js index 44e6ace7..aa06edf4 100644 --- a/src/js/plugins/preview-thumbnails.js +++ b/src/js/plugins/preview-thumbnails.js @@ -104,7 +104,7 @@ class PreviewThumbnails { } load() { - // Togglethe regular seek tooltip + // Toggle the regular seek tooltip if (this.player.elements.display.seekTooltip) { this.player.elements.display.seekTooltip.hidden = this.enabled; } @@ -328,6 +328,15 @@ class PreviewThumbnails { this.player.elements.wrapper.appendChild(this.elements.scrubbing.container); } + destroy() { + if (this.elements.thumb.container) { + this.elements.thumb.container.remove(); + } + if (this.elements.scrubbing.container) { + this.elements.scrubbing.container.remove(); + } + } + showImageAtCurrentTime() { if (this.mouseDown) { this.setScrubbingContainerSize(); |