diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/js/listeners.js | 2 | ||||
| -rw-r--r-- | src/js/plugins/preview-thumbnails.js | 4 | 
2 files changed, 3 insertions, 3 deletions
| diff --git a/src/js/listeners.js b/src/js/listeners.js index f68245e4..5b888a90 100644 --- a/src/js/listeners.js +++ b/src/js/listeners.js @@ -725,7 +725,7 @@ class Listeners {          });          // Hide thumbnail preview - on mouse click, mouse leave, and video play/seek. All four are required, e.g., for buffering -        this.bind(elements.progress, 'mouseleave click', () => { +        this.bind(elements.progress, 'mouseleave touchend click', () => {              const { previewThumbnails } = player;              if (previewThumbnails && previewThumbnails.loaded) { diff --git a/src/js/plugins/preview-thumbnails.js b/src/js/plugins/preview-thumbnails.js index 44e6ace7..6cd09ef2 100644 --- a/src/js/plugins/preview-thumbnails.js +++ b/src/js/plugins/preview-thumbnails.js @@ -239,8 +239,8 @@ class PreviewThumbnails {      }      startScrubbing(event) { -        // Only act on left mouse button (0), or touch device (event.button is false) -        if (event.button === false || event.button === 0) { +        // Only act on left mouse button (0), or touch device (event.button does not exist or is false) +        if (is.nullOrUndefined(event.button) || event.button === false || event.button === 0) {              this.mouseDown = true;              // Wait until media has a duration | 
