From 626d73ad2fa8e5a653e9073cecce58ed4e2f6027 Mon Sep 17 00:00:00 2001 From: Julien Froidefond Date: Sun, 19 Oct 2025 09:26:42 +0200 Subject: [PATCH] fix: reduce sync timeout duration in PhotoswipeReader for quicker read progress updates --- src/components/reader/PhotoswipeReader.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/reader/PhotoswipeReader.tsx b/src/components/reader/PhotoswipeReader.tsx index 8656a06..c6202e5 100644 --- a/src/components/reader/PhotoswipeReader.tsx +++ b/src/components/reader/PhotoswipeReader.tsx @@ -100,7 +100,7 @@ export function PhotoswipeReader({ book, pages, onClose, nextBook }: BookReaderP if (syncTimeoutRef.current) { clearTimeout(syncTimeoutRef.current); } - syncTimeoutRef.current = setTimeout(() => syncReadProgress(page), 2000); + syncTimeoutRef.current = setTimeout(() => syncReadProgress(page), 500); }, [syncReadProgress] );