perf: reduce reading position throttle from 3s to 1s

Reading position now saves every 1 second during continuous scrolling
instead of every 3 seconds, providing more frequent position updates.
This commit is contained in:
Gigi
2025-10-23 01:04:54 +02:00
parent 9de8b00d5d
commit ca32dfca51
2 changed files with 4 additions and 4 deletions

View File

@@ -331,7 +331,7 @@ const ContentPanel: React.FC<ContentPanelProps> = ({
// Note: We intentionally do NOT save on unmount because:
// 1. Browser may scroll to top during back navigation, causing 0% saves
// 2. The auto-save with 3s debounce already captures position during reading
// 2. The auto-save with 1s throttle already captures position during reading
// 3. Position state may not reflect actual reading position during navigation
// Close menu when clicking outside