fix scrubbing for chrome android & hide thumb preview on touchend

Chrome android sends TouchEvent which does not have a button property.
This commit is contained in:
ydylla
2020-02-08 18:59:09 +01:00
parent 8b9521d5a5
commit 9075ea189a
2 changed files with 3 additions and 3 deletions

View File

@ -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) {