aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorAjay <[email protected]>2024-01-31 18:58:06 -0500
committerAjay <[email protected]>2024-01-31 18:58:06 -0500
commit7cb413db15c89e678785f1ded3f9fdf2ff07f47b (patch)
treef820af6fde9f9e31a0d0acaa79718750cba96f7f /src
parentfdf1a6acf916d516675b3fd909a2ac04ef4b8590 (diff)
downloadSponsorBlock-7cb413db15c89e678785f1ded3f9fdf2ff07f47b.tar.gz
SponsorBlock-7cb413db15c89e678785f1ded3f9fdf2ff07f47b.zip
Don't display preview bar while scrubbing on mobile
Should help with #1962
Diffstat (limited to 'src')
-rw-r--r--src/content.ts4
1 files changed, 3 insertions, 1 deletions
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();