FIXED: Media Elements Example

Seeking was happening regardless of if a drag was happening
pull/3711/head
Aaron George 6 years ago committed by GitHub
parent 92cd56a348
commit 8dbaa75d7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -14,7 +14,7 @@
showControlsTimeout = setTimeout(() => showControls = false, 2500); showControlsTimeout = setTimeout(() => showControls = false, 2500);
showControls = true; showControls = true;
if (e.which !== 1) return; // mouse not down if (e.buttons !== 1) return; // mouse not down
if (!duration) return; // video not loaded yet if (!duration) return; // video not loaded yet
const { left, right } = this.getBoundingClientRect(); const { left, right } = this.getBoundingClientRect();

Loading…
Cancel
Save