mirror of
https://github.com/dergigi/boris.git
synced 2026-01-17 05:44:24 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user