fix: do not re-highlight when already processing highlights

This commit is contained in:
2025-10-28 15:31:46 +03:00
parent f07617fa55
commit 8be53f3240
2 changed files with 35 additions and 26 deletions

View File

@@ -68,7 +68,7 @@ export class ContentScript {
}
private setupScrollHandler(): void {
const debouncedProcess = DOMUtils.debounce(() => this.processHighlights(), 300);
const debouncedProcess = DOMUtils.debounce(() => this.processHighlights(), CONSTANTS.DEBOUNCE_DELAY);
window.addEventListener('scroll', debouncedProcess);
}