mirror of
https://github.com/iv-org/videojs-vtt-thumbnails.git
synced 2024-07-01 12:41:14 +00:00
Fix bug on mobile devices where mouse time indicator not available
This commit is contained in:
parent
00251ba9de
commit
73cf66f83f
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "videojs-vtt-thumbnails",
|
"name": "videojs-vtt-thumbnails",
|
||||||
"version": "0.0.10",
|
"version": "0.0.11",
|
||||||
"description": "Display thumnails on progress bar hover, driven by external VTT files.",
|
"description": "Display thumnails on progress bar hover, driven by external VTT files.",
|
||||||
"main": "dist/videojs-vtt-thumbnails.cjs.js",
|
"main": "dist/videojs-vtt-thumbnails.cjs.js",
|
||||||
"module": "dist/videojs-vtt-thumbnails.es.js",
|
"module": "dist/videojs-vtt-thumbnails.es.js",
|
||||||
|
|
|
@ -167,7 +167,9 @@ class vttThumbnailsPlugin {
|
||||||
thumbHolder.setAttribute('class', 'vjs-vtt-thumbnail-display')
|
thumbHolder.setAttribute('class', 'vjs-vtt-thumbnail-display')
|
||||||
this.progressBar.appendChild(thumbHolder)
|
this.progressBar.appendChild(thumbHolder)
|
||||||
this.thumbnailHolder = thumbHolder
|
this.thumbnailHolder = thumbHolder
|
||||||
mouseDisplay.classList.add('vjs-hidden')
|
if(mouseDisplay) {
|
||||||
|
mouseDisplay.classList.add('vjs-hidden')
|
||||||
|
}
|
||||||
this.registeredEvents.progressBarMouseEnter = () => { return this.onBarMouseenter() };
|
this.registeredEvents.progressBarMouseEnter = () => { return this.onBarMouseenter() };
|
||||||
this.registeredEvents.progressBarMouseLeave = () => { return this.onBarMouseleave() };
|
this.registeredEvents.progressBarMouseLeave = () => { return this.onBarMouseleave() };
|
||||||
this.progressBar.addEventListener('mouseenter', this.registeredEvents.progressBarMouseEnter)
|
this.progressBar.addEventListener('mouseenter', this.registeredEvents.progressBarMouseEnter)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user