mirror of
https://github.com/dergigi/boris.git
synced 2025-12-19 07:34:28 +01:00
chore(reading): remove noisy debounce log messages
Removed 'Debouncing save for 3000ms' logs that spam console on every scroll event. Keep only the actual save execution logs.
This commit is contained in:
@@ -71,7 +71,6 @@ export const useReadingPosition = ({
|
|||||||
}
|
}
|
||||||
|
|
||||||
const DEBOUNCE_MS = 3000 // Save max every 3 seconds
|
const DEBOUNCE_MS = 3000 // Save max every 3 seconds
|
||||||
console.log(`[reading-position] [${new Date().toISOString()}] ⏱️ Debouncing save for ${DEBOUNCE_MS}ms (pos: ${Math.round(currentPosition * 100)}%)`)
|
|
||||||
saveTimerRef.current = setTimeout(() => {
|
saveTimerRef.current = setTimeout(() => {
|
||||||
console.log(`[reading-position] [${new Date().toISOString()}] 💾 Auto-save at ${Math.round(currentPosition * 100)}%`)
|
console.log(`[reading-position] [${new Date().toISOString()}] 💾 Auto-save at ${Math.round(currentPosition * 100)}%`)
|
||||||
lastSavedPosition.current = currentPosition
|
lastSavedPosition.current = currentPosition
|
||||||
|
|||||||
Reference in New Issue
Block a user