Don't display preview bar while scrubbing on mobile

Should help with #1962
This commit is contained in:
Ajay 2024-01-31 18:58:06 -05:00
parent fdf1a6acf9
commit 7cb413db15

View file

@ -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();