fix(extension): bugfix

This commit is contained in:
Ljy-0827
2026-08-06 18:46:06 +08:00
parent d685c75d25
commit 6c610faed9
5 changed files with 45 additions and 3 deletions
@@ -422,6 +422,10 @@ export function startRecordCapture(
const onMouseOver = (event: MouseEvent) => {
const target = eventTarget(event);
if (isOverlayTarget(target)) return;
if (pendingHover && target instanceof Element && pendingHover.element.contains(target)) {
if (Date.now() - pendingHover.recordedAt <= HOVER_BEFORE_CLICK_MAX_MS) return;
pendingHover = null;
}
const hover = hoverTargetFromEvent(target);
if (!hover) return;
const now = Date.now();