FIXED: Media Elements Tutorial

* FIXED: Seeking

Seeking was being caused on the mousemove event, regardless of if the mouse was actually dragging or not
pull/3723/head
Aaron George 5 years ago committed by Conduitry
parent 231fbfa020
commit 36ca311500

@ -14,7 +14,7 @@
showControlsTimeout = setTimeout(() => showControls = false, 2500);
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
const { left, right } = this.getBoundingClientRect();
@ -124,4 +124,4 @@
<span class="time">{format(duration)}</span>
</div>
</div>
</div>
</div>

@ -14,7 +14,7 @@
showControlsTimeout = setTimeout(() => showControls = false, 2500);
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
const { left, right } = this.getBoundingClientRect();

Loading…
Cancel
Save