From 68feb78d99c31f512da51d0547d11f325181b902 Mon Sep 17 00:00:00 2001 From: Aaron George Date: Wed, 16 Oct 2019 00:59:18 +1100 Subject: [PATCH] FIXED: Seeking Seeking was being caused on the mousemove event, regardless of if the mouse was actually dragging or not --- .../tutorial/06-bindings/10-media-elements/app-a/App.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/site/content/tutorial/06-bindings/10-media-elements/app-a/App.svelte b/site/content/tutorial/06-bindings/10-media-elements/app-a/App.svelte index 4b24316232..9d4a7b46bf 100644 --- a/site/content/tutorial/06-bindings/10-media-elements/app-a/App.svelte +++ b/site/content/tutorial/06-bindings/10-media-elements/app-a/App.svelte @@ -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 @@ {format(duration)} - \ No newline at end of file +