Skip to content

Commit

Permalink
FIXED: Media Elements Tutorial
Browse files Browse the repository at this point in the history
* FIXED: Seeking

Seeking was being caused on the mousemove event, regardless of if the mouse was actually dragging or not
  • Loading branch information
aarongeorge authored and Conduitry committed Oct 16, 2019
1 parent 231fbfa commit 36ca311
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -124,4 +124,4 @@
<span class="time">{format(duration)}</span>
</div>
</div>
</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 36ca311

Please sign in to comment.