From 7cb413db15c89e678785f1ded3f9fdf2ff07f47b Mon Sep 17 00:00:00 2001 From: Ajay Date: Wed, 31 Jan 2024 18:58:06 -0500 Subject: [PATCH] Don't display preview bar while scrubbing on mobile Should help with #1962 --- src/content.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/content.ts b/src/content.ts index 71434eb7..51b96aeb 100644 --- a/src/content.ts +++ b/src/content.ts @@ -454,7 +454,9 @@ function videoIDChange(): void { } function handleMobileControlsMutations(): void { - if (!chrome.runtime?.id) return; + // Don't update while scrubbing + if (!chrome.runtime?.id + || document.querySelector(".YtProgressBarProgressBarPlayheadDotInDragging")) return; updateVisibilityOfPlayerControlsButton();