fix: replace empty catch blocks with error logging
This commit is contained in:
@@ -274,7 +274,9 @@ const initPlayer = (): void => {
|
||||
state.isScrubbing = true;
|
||||
try {
|
||||
(e.currentTarget as HTMLElement).setPointerCapture((e as PointerEvent).pointerId);
|
||||
} catch {}
|
||||
} catch (e) {
|
||||
console.warn("Failed to capture pointer:", e);
|
||||
}
|
||||
scrubToPointer(e.clientX, true);
|
||||
},
|
||||
{ signal },
|
||||
|
||||
Reference in New Issue
Block a user